@rafal.lemieszewski/tide-ui 0.16.0 → 0.18.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 +6 -1
- package/dist/components/ui/data-table.d.ts +15 -2
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/table.d.ts +2 -2
- package/dist/index.cjs.js +1695 -1695
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +19081 -18922
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +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;
|
|
@@ -19,6 +19,7 @@ export interface ChartConfig {
|
|
|
19
19
|
fill?: string;
|
|
20
20
|
showDots?: boolean;
|
|
21
21
|
strokeStyle?: "solid" | "dashed" | "dotted";
|
|
22
|
+
yAxisId?: "left" | "right";
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
export interface ChartMargin {
|
|
@@ -51,6 +52,10 @@ export interface ChartProps {
|
|
|
51
52
|
yAxisTickCount?: number;
|
|
52
53
|
xAxisTickFormatter?: (value: any, index: number) => string;
|
|
53
54
|
yAxisTickFormatter?: (value: any, index: number) => string;
|
|
55
|
+
rightYAxisWidth?: number;
|
|
56
|
+
rightYAxisTickCount?: number;
|
|
57
|
+
rightYAxisTickFormatter?: (value: any, index: number) => string;
|
|
58
|
+
showRightYAxis?: boolean;
|
|
54
59
|
title?: string;
|
|
55
60
|
description?: string;
|
|
56
61
|
showDataTable?: boolean;
|
|
@@ -58,6 +63,6 @@ export interface ChartProps {
|
|
|
58
63
|
legendOrder?: string[];
|
|
59
64
|
legendPosition?: 'bottom' | 'top' | 'right';
|
|
60
65
|
}
|
|
61
|
-
export declare function Chart({ type, data, config, className, height, width, minWidth, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, colorScheme, responsive, maintainAspectRatio, margin, marginSize, yAxisWidth, yAxisTickCount, xAxisTickFormatter, yAxisTickFormatter, title, description, showDataTable, tooltipMaxWidth, legendOrder, legendPosition, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export declare function Chart({ type, data, config, className, height, width, minWidth, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, colorScheme, responsive, maintainAspectRatio, margin, marginSize, yAxisWidth, yAxisTickCount, xAxisTickFormatter, yAxisTickFormatter, rightYAxisWidth, rightYAxisTickCount, rightYAxisTickFormatter, showRightYAxis, title, description, showDataTable, tooltipMaxWidth, legendOrder, legendPosition, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
|
|
62
67
|
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")[];
|
|
63
68
|
export declare const createChartConfig: (input: ChartConfig | string[], labels?: string[], colors?: string[]) => ChartConfig;
|
|
@@ -14,6 +14,11 @@ export interface ColumnMeta {
|
|
|
14
14
|
}
|
|
15
15
|
declare const fuzzyFilter: FilterFn<any>;
|
|
16
16
|
declare const multiSelectFilter: FilterFn<any>;
|
|
17
|
+
interface DataTableSkeletonProps {
|
|
18
|
+
columns: number;
|
|
19
|
+
rows: number;
|
|
20
|
+
}
|
|
21
|
+
declare function DataTableSkeleton({ columns, rows }: DataTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
17
22
|
interface DataTableToolbarProps<_TData = any> {
|
|
18
23
|
table: any;
|
|
19
24
|
searchKey?: string;
|
|
@@ -41,6 +46,14 @@ export interface DataTableProps<TData, TValue> {
|
|
|
41
46
|
searchPlaceholder?: string;
|
|
42
47
|
title?: string;
|
|
43
48
|
className?: string;
|
|
49
|
+
stickyHeader?: boolean;
|
|
50
|
+
stickyFirstColumn?: boolean;
|
|
51
|
+
stickyLeftColumns?: number;
|
|
52
|
+
stickyRightColumns?: number;
|
|
53
|
+
enableResponsiveWrapper?: boolean;
|
|
54
|
+
showScrollIndicators?: boolean;
|
|
55
|
+
isLoading?: boolean;
|
|
56
|
+
loadingRowCount?: number;
|
|
44
57
|
}
|
|
45
|
-
export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, title, className, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
export { DataTableColumnHeader, DataTableFilter, DataTableToolbar, DataTablePagination, fuzzyFilter, multiSelectFilter };
|
|
58
|
+
export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, title, className, stickyHeader, stickyFirstColumn, stickyLeftColumns, stickyRightColumns, enableResponsiveWrapper, showScrollIndicators, isLoading, loadingRowCount, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export { DataTableColumnHeader, DataTableFilter, DataTableToolbar, DataTablePagination, DataTableSkeleton, fuzzyFilter, multiSelectFilter };
|
|
@@ -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;
|
|
@@ -8,12 +8,12 @@ declare const tableRowVariants: (props?: ({
|
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
declare const tableCellVariants: (props?: ({
|
|
10
10
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
|
-
align?: "
|
|
11
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
12
12
|
numeric?: boolean | null | undefined;
|
|
13
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
14
|
declare const tableHeaderVariants: (props?: ({
|
|
15
15
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
16
|
-
align?: "
|
|
16
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
17
17
|
numeric?: boolean | null | undefined;
|
|
18
18
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
19
19
|
interface TableProps extends React.HTMLAttributes<HTMLTableElement>, VariantProps<typeof tableVariants> {
|