@rafal.lemieszewski/tide-ui 0.20.1 → 0.21.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/components/ui/button.d.ts +1 -1
- package/dist/components/ui/chart.d.ts +7 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/table.d.ts +2 -2
- package/dist/index.cjs.js +370 -370
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9123 -9072
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { IconType } from './icon';
|
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
5
|
variant?: "default" | "success" | "destructive" | "secondary" | "primary" | "ghost" | null | undefined;
|
|
6
6
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
-
iconPosition?: "none" | "
|
|
7
|
+
iconPosition?: "none" | "left" | "right" | "only" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
10
|
icon?: IconType;
|
|
@@ -20,6 +20,7 @@ export interface ChartConfig {
|
|
|
20
20
|
fill?: string;
|
|
21
21
|
showDots?: boolean;
|
|
22
22
|
strokeStyle?: "solid" | "dashed" | "dotted";
|
|
23
|
+
yAxisId?: "left" | "right";
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
export interface ChartMargin {
|
|
@@ -71,6 +72,11 @@ export interface ChartProps {
|
|
|
71
72
|
yAxisDomain?: [number | 'auto' | 'dataMin' | 'dataMax', number | 'auto' | 'dataMin' | 'dataMax'];
|
|
72
73
|
xAxisTickFormatter?: (value: any, index: number) => string;
|
|
73
74
|
yAxisTickFormatter?: (value: any, index: number) => string;
|
|
75
|
+
showRightYAxis?: boolean;
|
|
76
|
+
rightYAxisWidth?: number;
|
|
77
|
+
rightYAxisTickCount?: number;
|
|
78
|
+
rightYAxisDomain?: [number | 'auto' | 'dataMin' | 'dataMax', number | 'auto' | 'dataMin' | 'dataMax'];
|
|
79
|
+
rightYAxisTickFormatter?: (value: any, index: number) => string;
|
|
74
80
|
title?: string;
|
|
75
81
|
description?: string;
|
|
76
82
|
showDataTable?: boolean;
|
|
@@ -79,6 +85,6 @@ export interface ChartProps {
|
|
|
79
85
|
legendPosition?: 'bottom';
|
|
80
86
|
referenceMarkers?: ReferenceMarker[];
|
|
81
87
|
}
|
|
82
|
-
export declare function Chart({ type, data, config, className, height, width, minWidth, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, colorScheme, responsive, maintainAspectRatio, margin, yAxisWidth, yAxisTickCount, xAxisTickFormatter, yAxisTickFormatter, title, description, showDataTable, tooltipMaxWidth, legendOrder, legendPosition, referenceMarkers, yAxisDomain, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
export declare function Chart({ type, data, config, className, height, width, minWidth, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, colorScheme, responsive, maintainAspectRatio, margin, yAxisWidth, yAxisTickCount, xAxisTickFormatter, yAxisTickFormatter, showRightYAxis, rightYAxisWidth, rightYAxisTickCount, rightYAxisDomain, rightYAxisTickFormatter, title, description, showDataTable, tooltipMaxWidth, legendOrder, legendPosition, referenceMarkers, yAxisDomain, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
|
|
83
89
|
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")[];
|
|
84
90
|
export declare const createChartConfig: (input: ChartConfig | string[], labels?: string[], colors?: string[]) => ChartConfig;
|
|
@@ -7,7 +7,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
|
|
|
7
7
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
8
8
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
declare const sheetVariants: (props?: ({
|
|
10
|
-
side?: "
|
|
10
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
12
|
export interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
13
|
showClose?: boolean;
|
|
@@ -9,14 +9,14 @@ declare const tableRowVariants: (props?: ({
|
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
declare const tableCellVariants: (props?: ({
|
|
11
11
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
12
|
-
align?: "
|
|
12
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
13
13
|
numeric?: boolean | null | undefined;
|
|
14
14
|
showBorder?: boolean | null | undefined;
|
|
15
15
|
showRowBorder?: boolean | null | undefined;
|
|
16
16
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
17
17
|
declare const tableHeaderVariants: (props?: ({
|
|
18
18
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
19
|
-
align?: "
|
|
19
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
20
20
|
numeric?: boolean | null | undefined;
|
|
21
21
|
showBorder?: boolean | null | undefined;
|
|
22
22
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|