@rafal.lemieszewski/tide-ui 0.3.1 → 0.4.1

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.
@@ -6,8 +6,11 @@ export { Avatar, AvatarImage, AvatarFallback, avatarVariants, avatarFallbackVari
6
6
  export type { AvatarProps, AvatarFallbackProps } from './ui/avatar';
7
7
  export { Badge } from './ui/badge';
8
8
  export type { BadgeProps } from './ui/badge';
9
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent } from './ui/collapsible';
9
10
  export { Button } from './ui/button';
10
11
  export type { ButtonProps } from './ui/button';
12
+ export { ButtonGroup } from './ui/button-group';
13
+ export type { ButtonGroupProps } from './ui/button-group';
11
14
  export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './ui/card';
12
15
  export { Checkbox, checkboxVariants } from './ui/checkbox';
13
16
  export { RadioGroup, RadioGroupItem, radioGroupVariants, radioGroupItemVariants } from './ui/radio-group';
@@ -51,6 +54,17 @@ export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetConten
51
54
  export type { SheetContentProps } from './ui/sheet';
52
55
  export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, DropdownMenuLabel, DropdownMenuGroup, } from './ui/dropdown-menu';
53
56
  export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from './ui/tooltip';
57
+ export { Toaster, toast } from './ui/toast';
58
+ export { Pagination } from './ui/pagination';
59
+ export type { PaginationProps } from './ui/pagination';
60
+ export { Progress } from './ui/progress';
61
+ export type { ProgressProps } from './ui/progress';
62
+ export { Popover, PopoverTrigger, PopoverContent } from './ui/popover';
63
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, TableSortHeader, TableGroupHeader, tableVariants, tableRowVariants, tableCellVariants, tableHeaderVariants, } from './ui/table';
64
+ export type { TableProps, TableRowProps, TableHeadProps, TableCellProps, TableSortHeaderProps, } from './ui/table';
65
+ export { DataTable } from './ui/data-table';
66
+ export { LinkedChart, createLinkedChartColumns } from './ui/linked-chart';
67
+ export type { LinkedChartProps, LinkedChartColumn } from './ui/linked-chart';
54
68
  export { cn } from '../lib/utils';
55
69
  export declare const designTokens: {
56
70
  readonly colors: {
@@ -0,0 +1,9 @@
1
+ import { ButtonProps } from './button';
2
+ import * as React from "react";
3
+ export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ children: React.ReactNode;
5
+ size?: ButtonProps["size"];
6
+ variant?: ButtonProps["variant"];
7
+ }
8
+ declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
9
+ export { ButtonGroup };
@@ -1,5 +1,8 @@
1
+ import * as React from "react";
1
2
  import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
2
- declare const Collapsible: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import('react').RefAttributes<HTMLDivElement>>;
3
- declare const CollapsibleTrigger: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
4
- declare const CollapsibleContent: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const CollapsibleTrigger: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
5
+ hideIcon?: boolean;
6
+ } & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
8
  export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -18,8 +18,9 @@ interface DataTableToolbarProps<_TData = any> {
18
18
  table: any;
19
19
  searchKey?: string;
20
20
  searchPlaceholder?: string;
21
+ showViewOptions?: boolean;
21
22
  }
22
- declare function DataTableToolbar<TData>({ table, searchKey, searchPlaceholder }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
23
+ declare function DataTableToolbar<TData>({ table, searchKey, searchPlaceholder, showViewOptions }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
23
24
  interface DataTableFilterProps {
24
25
  column: any;
25
26
  }
@@ -38,7 +39,8 @@ export interface DataTableProps<TData, TValue> {
38
39
  data: TData[];
39
40
  searchKey?: string;
40
41
  searchPlaceholder?: string;
42
+ title?: string;
41
43
  className?: string;
42
44
  }
43
- export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, className, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
45
+ export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, title, className, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
44
46
  export { DataTableColumnHeader, DataTableFilter, DataTableToolbar, DataTablePagination, fuzzyFilter, multiSelectFilter };
@@ -16,7 +16,7 @@ export interface LinkedChartProps extends Omit<ChartProps, "onDataPointClick" |
16
16
  showTable?: boolean;
17
17
  tableClassName?: string;
18
18
  chartClassName?: string;
19
- chartFilterMode?: "highlight" | "filter";
19
+ enableRowFiltering?: boolean;
20
20
  }
21
- export declare function LinkedChart({ title, description, data, config, columns, type, enableFiltering, enableRowSelection, onRowSelectionChange, onDataFilter, showTable, tableClassName, chartClassName, chartFilterMode, className, ...chartProps }: LinkedChartProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function LinkedChart({ title, description, data, config, columns, type, enableFiltering, enableRowSelection, onRowSelectionChange, onDataFilter, showTable, tableClassName, chartClassName, enableRowFiltering, className, ...chartProps }: LinkedChartProps): import("react/jsx-runtime").JSX.Element;
22
22
  export declare const createLinkedChartColumns: (config: ChartConfig, additionalColumns?: LinkedChartColumn[]) => LinkedChartColumn[];
@@ -1,13 +1,12 @@
1
- import { ButtonProps } from './button';
2
1
  import * as React from "react";
3
- declare const Pagination: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
4
- declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
5
- declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
6
- type PaginationLinkProps = {
7
- isActive?: boolean;
8
- } & Pick<ButtonProps, "size"> & React.ComponentProps<"a">;
9
- declare const PaginationLink: React.ForwardRefExoticComponent<Omit<PaginationLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
10
- declare const PaginationPrevious: React.ForwardRefExoticComponent<Omit<Omit<PaginationLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
11
- declare const PaginationNext: React.ForwardRefExoticComponent<Omit<Omit<PaginationLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
12
- declare const PaginationEllipsis: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
13
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
2
+ export interface PaginationProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ variant?: "default" | "full";
4
+ currentPage: number;
5
+ totalItems: number;
6
+ pageSize: number;
7
+ onPageChange: (page: number) => void;
8
+ onPageSizeChange: (pageSize: number) => void;
9
+ pageSizeOptions?: number[];
10
+ }
11
+ declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLDivElement>>;
12
+ export { Pagination };
@@ -9,10 +9,12 @@ declare const tableRowVariants: (props?: ({
9
9
  declare const tableCellVariants: (props?: ({
10
10
  size?: "sm" | "md" | "lg" | null | undefined;
11
11
  align?: "center" | "left" | "right" | null | undefined;
12
+ numeric?: boolean | null | undefined;
12
13
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
13
14
  declare const tableHeaderVariants: (props?: ({
14
15
  size?: "sm" | "md" | "lg" | null | undefined;
15
16
  align?: "center" | "left" | "right" | null | undefined;
17
+ numeric?: boolean | null | undefined;
16
18
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
17
19
  interface TableProps extends React.HTMLAttributes<HTMLTableElement>, VariantProps<typeof tableVariants> {
18
20
  }
@@ -2,11 +2,9 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
4
4
  declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
5
- variant?: "default" | "outline" | null | undefined;
6
5
  size?: "sm" | "md" | "lg" | null | undefined;
7
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
8
7
  declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
9
- variant?: "default" | "outline" | null | undefined;
10
8
  size?: "sm" | "md" | "lg" | null | undefined;
11
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
12
10
  export { ToggleGroup, ToggleGroupItem };
@@ -2,7 +2,6 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  import * as TogglePrimitive from "@radix-ui/react-toggle";
4
4
  declare const toggleVariants: (props?: ({
5
- variant?: "default" | "outline" | null | undefined;
6
5
  size?: "sm" | "md" | "lg" | null | undefined;
7
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
7
  export interface ToggleProps extends React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, VariantProps<typeof toggleVariants> {