@rafal.lemieszewski/tide-ui 0.87.9 → 0.88.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/cjs/components/fundamental/button.cjs +1 -1
- package/dist/cjs/components/fundamental/chart.cjs +1 -1
- package/dist/cjs/components/fundamental/separator.cjs +1 -1
- package/dist/es/components/fundamental/button.js +9 -9
- package/dist/es/components/fundamental/chart.js +600 -444
- package/dist/es/components/fundamental/separator.js +38 -37
- package/dist/es/style.css +1 -1
- package/dist/types/components/fundamental/chart.d.cts +12 -2
- package/dist/types/components/fundamental/chart.d.ts +12 -2
- package/dist/types/components/fundamental/separator.d.ts +2 -3
- package/dist/types/components/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -37,6 +37,8 @@ export interface ReferenceMarkerDataPoint {
|
|
|
37
37
|
fill?: string;
|
|
38
38
|
stroke?: string;
|
|
39
39
|
strokeWidth?: number;
|
|
40
|
+
yAxisId?: string;
|
|
41
|
+
pulsing?: boolean;
|
|
40
42
|
}
|
|
41
43
|
export interface ReferenceMarker {
|
|
42
44
|
xValue: string | number;
|
|
@@ -46,8 +48,13 @@ export interface ReferenceMarker {
|
|
|
46
48
|
strokeWidth?: number;
|
|
47
49
|
strokeDasharray?: string;
|
|
48
50
|
};
|
|
51
|
+
lineLabel?: string;
|
|
49
52
|
tooltipLabel?: string;
|
|
50
|
-
dataPoints
|
|
53
|
+
dataPoints?: ReferenceMarkerDataPoint[];
|
|
54
|
+
}
|
|
55
|
+
export interface TodayMarker {
|
|
56
|
+
xValue: string | number;
|
|
57
|
+
label?: string;
|
|
51
58
|
}
|
|
52
59
|
export interface ChartProps {
|
|
53
60
|
type: ChartType;
|
|
@@ -89,7 +96,10 @@ export interface ChartProps {
|
|
|
89
96
|
legendOrder?: string[];
|
|
90
97
|
legendPosition?: 'bottom';
|
|
91
98
|
referenceMarkers?: ReferenceMarker[];
|
|
99
|
+
todayMarker?: TodayMarker;
|
|
100
|
+
scrollable?: boolean;
|
|
101
|
+
scrollableWidth?: number;
|
|
92
102
|
}
|
|
93
|
-
export declare function Chart({ type, data, config, className, height, width, minWidth, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, colorScheme, responsive, maintainAspectRatio, legendHeight, margin, yAxisWidth, yAxisTickCount, xAxisTickFormatter, yAxisTickFormatter, showRightYAxis, rightYAxisWidth, rightYAxisTickCount, rightYAxisDomain, rightYAxisTickFormatter, title, description, showDataTable, tooltipMaxWidth, tooltipAllowEscapeViewBox, legendOrder, legendPosition, referenceMarkers, yAxisDomain, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
export declare function Chart({ type, data, config, className, height, width, minWidth, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, colorScheme, responsive, maintainAspectRatio, legendHeight, margin, yAxisWidth, yAxisTickCount, xAxisTickFormatter, yAxisTickFormatter, showRightYAxis, rightYAxisWidth, rightYAxisTickCount, rightYAxisDomain, rightYAxisTickFormatter, title, description, showDataTable, tooltipMaxWidth, tooltipAllowEscapeViewBox, legendOrder, legendPosition, referenceMarkers, todayMarker, yAxisDomain, scrollable, scrollableWidth, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
|
|
94
104
|
export declare const generateChartColors: (count: number, scheme?: ChartColorScheme) => ("var(--color-chart-bar-1)" | "var(--color-chart-bar-2)" | "var(--color-chart-bar-3)" | "var(--color-chart-bar-4)" | "var(--color-chart-bar-5)" | "var(--color-chart-bar-6)" | "var(--color-chart-line-1)" | "var(--color-chart-line-2)" | "var(--color-chart-line-3)" | "var(--color-chart-line-4)" | "var(--color-chart-line-5)" | "var(--color-chart-scatter-1)" | "var(--color-chart-scatter-2)" | "var(--color-chart-scatter-3)" | "var(--color-chart-scatter-4)" | "var(--color-chart-scatter-5)" | "var(--color-chart-scatter-6)" | "var(--color-chart-area-1)" | "var(--color-chart-area-2)" | "var(--color-chart-area-3)" | "var(--color-chart-area-4)" | "var(--color-chart-area-5)" | "var(--color-chart-area-6)" | "#0066CC" | "#CC6600" | "#009966" | "#CC0066" | "#6600CC" | "#CC9900" | "#006666" | "#CC0000")[];
|
|
95
105
|
export declare const createChartConfig: (input: ChartConfig | string[], labels?: string[], colors?: string[]) => ChartConfig;
|
|
@@ -37,6 +37,8 @@ export interface ReferenceMarkerDataPoint {
|
|
|
37
37
|
fill?: string;
|
|
38
38
|
stroke?: string;
|
|
39
39
|
strokeWidth?: number;
|
|
40
|
+
yAxisId?: string;
|
|
41
|
+
pulsing?: boolean;
|
|
40
42
|
}
|
|
41
43
|
export interface ReferenceMarker {
|
|
42
44
|
xValue: string | number;
|
|
@@ -46,8 +48,13 @@ export interface ReferenceMarker {
|
|
|
46
48
|
strokeWidth?: number;
|
|
47
49
|
strokeDasharray?: string;
|
|
48
50
|
};
|
|
51
|
+
lineLabel?: string;
|
|
49
52
|
tooltipLabel?: string;
|
|
50
|
-
dataPoints
|
|
53
|
+
dataPoints?: ReferenceMarkerDataPoint[];
|
|
54
|
+
}
|
|
55
|
+
export interface TodayMarker {
|
|
56
|
+
xValue: string | number;
|
|
57
|
+
label?: string;
|
|
51
58
|
}
|
|
52
59
|
export interface ChartProps {
|
|
53
60
|
type: ChartType;
|
|
@@ -89,7 +96,10 @@ export interface ChartProps {
|
|
|
89
96
|
legendOrder?: string[];
|
|
90
97
|
legendPosition?: 'bottom';
|
|
91
98
|
referenceMarkers?: ReferenceMarker[];
|
|
99
|
+
todayMarker?: TodayMarker;
|
|
100
|
+
scrollable?: boolean;
|
|
101
|
+
scrollableWidth?: number;
|
|
92
102
|
}
|
|
93
|
-
export declare function Chart({ type, data, config, className, height, width, minWidth, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, colorScheme, responsive, maintainAspectRatio, legendHeight, margin, yAxisWidth, yAxisTickCount, xAxisTickFormatter, yAxisTickFormatter, showRightYAxis, rightYAxisWidth, rightYAxisTickCount, rightYAxisDomain, rightYAxisTickFormatter, title, description, showDataTable, tooltipMaxWidth, tooltipAllowEscapeViewBox, legendOrder, legendPosition, referenceMarkers, yAxisDomain, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
export declare function Chart({ type, data, config, className, height, width, minWidth, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, colorScheme, responsive, maintainAspectRatio, legendHeight, margin, yAxisWidth, yAxisTickCount, xAxisTickFormatter, yAxisTickFormatter, showRightYAxis, rightYAxisWidth, rightYAxisTickCount, rightYAxisDomain, rightYAxisTickFormatter, title, description, showDataTable, tooltipMaxWidth, tooltipAllowEscapeViewBox, legendOrder, legendPosition, referenceMarkers, todayMarker, yAxisDomain, scrollable, scrollableWidth, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
|
|
94
104
|
export declare const generateChartColors: (count: number, scheme?: ChartColorScheme) => ("var(--color-chart-bar-1)" | "var(--color-chart-bar-2)" | "var(--color-chart-bar-3)" | "var(--color-chart-bar-4)" | "var(--color-chart-bar-5)" | "var(--color-chart-bar-6)" | "var(--color-chart-line-1)" | "var(--color-chart-line-2)" | "var(--color-chart-line-3)" | "var(--color-chart-line-4)" | "var(--color-chart-line-5)" | "var(--color-chart-scatter-1)" | "var(--color-chart-scatter-2)" | "var(--color-chart-scatter-3)" | "var(--color-chart-scatter-4)" | "var(--color-chart-scatter-5)" | "var(--color-chart-scatter-6)" | "var(--color-chart-area-1)" | "var(--color-chart-area-2)" | "var(--color-chart-area-3)" | "var(--color-chart-area-4)" | "var(--color-chart-area-5)" | "var(--color-chart-area-6)" | "#0066CC" | "#CC6600" | "#009966" | "#CC0066" | "#6600CC" | "#CC9900" | "#006666" | "#CC0000")[];
|
|
95
105
|
export declare const createChartConfig: (input: ChartConfig | string[], labels?: string[], colors?: string[]) => ChartConfig;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
-
export interface SeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
|
|
4
|
-
type?: "line" | "dot";
|
|
5
|
-
layout?: "horizontal" | "vertical";
|
|
3
|
+
export interface SeparatorProps extends Omit<React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>, "orientation"> {
|
|
4
|
+
type?: "horizontal-line" | "vertical-line" | "dot";
|
|
6
5
|
}
|
|
7
6
|
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
7
|
export { Separator };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Alert, AlertDescription, AlertTitle } from './fundamental/alert.js';
|
|
2
2
|
export type { AlertProps } from './fundamental/alert.js';
|
|
3
3
|
export { Chart, generateChartColors, createChartConfig, chartColorSchemes } from './fundamental/chart.js';
|
|
4
|
-
export type { ChartProps, ChartConfig, ChartDataPoint, ChartType, ChartColorScheme } from './fundamental/chart.js';
|
|
4
|
+
export type { ChartProps, ChartConfig, ChartDataPoint, ChartType, ChartColorScheme, ReferenceMarker, ReferenceMarkerDataPoint, TodayMarker } from './fundamental/chart.js';
|
|
5
5
|
export { Avatar, AvatarImage, AvatarFallback, avatarVariants, avatarFallbackVariants } from './fundamental/avatar.js';
|
|
6
6
|
export type { AvatarProps, AvatarFallbackProps } from './fundamental/avatar.js';
|
|
7
7
|
export { AvatarGroup } from './fundamental/avatar-group.js';
|
package/package.json
CHANGED