@clidey/ux 0.27.0 → 0.29.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/index.d.ts CHANGED
@@ -13,6 +13,7 @@ import * as LabelPrimitive from '@radix-ui/react-label';
13
13
  import { LucideIcon } from 'lucide-react';
14
14
  import * as PopoverPrimitive from '@radix-ui/react-popover';
15
15
  import * as React_2 from 'react';
16
+ import * as RechartsPrimitive from 'recharts';
16
17
  import * as ResizablePrimitive from 'react-resizable-panels';
17
18
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
18
19
  import * as SelectPrimitive from '@radix-ui/react-select';
@@ -104,6 +105,50 @@ export declare function CardHeader({ className, ...props }: React_2.ComponentPro
104
105
 
105
106
  export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
106
107
 
108
+ declare type ChartConfig = {
109
+ [k in string]: {
110
+ label?: React_2.ReactNode;
111
+ icon?: React_2.ComponentType;
112
+ } & ({
113
+ color?: string;
114
+ theme?: never;
115
+ } | {
116
+ color?: never;
117
+ theme: Record<keyof typeof THEMES, string>;
118
+ });
119
+ };
120
+
121
+ export declare function ChartContainer({ id, className, children, config, ...props }: React_2.ComponentProps<"div"> & {
122
+ config: ChartConfig;
123
+ children: React_2.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
124
+ }): JSX.Element;
125
+
126
+ export declare const ChartLegend: typeof RechartsPrimitive.Legend;
127
+
128
+ export declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React_2.ComponentProps<"div"> & {
129
+ hideIcon?: boolean;
130
+ nameKey?: string;
131
+ payload?: PayloadItem[];
132
+ verticalAlign?: "top" | "bottom";
133
+ }): JSX.Element | null;
134
+
135
+ export declare const ChartStyle: ({ id, config }: {
136
+ id: string;
137
+ config: ChartConfig;
138
+ }) => JSX.Element | null;
139
+
140
+ export declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
141
+
142
+ export declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React_2.ComponentProps<typeof RechartsPrimitive.Tooltip> & React_2.ComponentProps<"div"> & {
143
+ hideLabel?: boolean;
144
+ hideIndicator?: boolean;
145
+ indicator?: "line" | "dot" | "dashed";
146
+ nameKey?: string;
147
+ labelKey?: string;
148
+ payload?: PayloadItem[];
149
+ label?: string;
150
+ }): JSX.Element | null;
151
+
107
152
  export declare function Checkbox({ className, ...props }: React_2.ComponentProps<typeof CheckboxPrimitive.Root>): JSX.Element;
108
153
 
109
154
  export declare function cn(...inputs: ClassValue[]): string;
@@ -266,6 +311,19 @@ export declare function PaginationNext({ className, ...props }: React_2.Componen
266
311
 
267
312
  export declare function PaginationPrevious({ className, ...props }: React_2.ComponentProps<typeof PaginationLink>): JSX.Element;
268
313
 
314
+ declare type PayloadItem = {
315
+ type?: "none";
316
+ name?: string;
317
+ dataKey?: string;
318
+ value?: number;
319
+ color?: string;
320
+ payload?: {
321
+ fill?: string;
322
+ [key: string]: unknown;
323
+ };
324
+ [key: string]: unknown;
325
+ };
326
+
269
327
  export declare function Popover({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Root>): JSX.Element;
270
328
 
271
329
  export declare function PopoverContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Content>): JSX.Element;
@@ -517,6 +575,11 @@ declare type ThemeProviderState = {
517
575
  setTheme: (theme: Theme) => void;
518
576
  };
519
577
 
578
+ declare const THEMES: {
579
+ readonly light: "";
580
+ readonly dark: ".dark";
581
+ };
582
+
520
583
  export { toast }
521
584
 
522
585
  export declare const Toaster: ({ className, ...props }: ToasterProps) => JSX.Element;