@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.
@@ -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: ReferenceMarkerDataPoint[];
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: ReferenceMarkerDataPoint[];
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rafal.lemieszewski/tide-ui",
3
- "version": "0.87.9",
3
+ "version": "0.88.0",
4
4
  "description": "A comprehensive React component library built with Tailwind CSS and Radix UI primitives",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/lib/index.cjs",