@mvn-ui/react 0.1.3 → 0.1.5
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.css +138 -26
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +638 -34
- package/dist/index.d.ts +638 -34
- package/dist/index.js +2453 -698
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2225 -582
- package/dist/index.mjs.map +1 -1
- package/dist/themes.css +653 -0
- package/package.json +5 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import React__default, { TouchEvent, ReactElement, ReactNode } from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
export { VariantProps as TypographyVariantProps, VariantProps } from 'class-variance-authority';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -44,13 +44,83 @@ import { DayPicker, DayButton, DateRange } from 'react-day-picker';
|
|
|
44
44
|
export { DateRange } from 'react-day-picker';
|
|
45
45
|
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
46
46
|
import { ClassValue } from 'clsx';
|
|
47
|
+
export { Area, Bar, Brush, CartesianGrid, Cell, Legend as ChartLegend, Tooltip as ChartTooltip, Line, Pie, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, ReferenceArea, ReferenceLine, ResponsiveContainer, Scatter, XAxis, YAxis, ZAxis } from 'recharts';
|
|
48
|
+
|
|
49
|
+
declare const BREAKPOINTS: {
|
|
50
|
+
readonly sm: 640;
|
|
51
|
+
readonly md: 768;
|
|
52
|
+
readonly lg: 1024;
|
|
53
|
+
readonly xl: 1280;
|
|
54
|
+
};
|
|
55
|
+
type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
56
|
+
/**
|
|
57
|
+
* SSR-safe hook for detecting current breakpoint.
|
|
58
|
+
* Returns fallback value during SSR to prevent hydration mismatches.
|
|
59
|
+
*
|
|
60
|
+
* @param ssrFallback - Breakpoint to return during SSR (default: 'md')
|
|
61
|
+
* @returns Current breakpoint based on viewport width
|
|
62
|
+
*/
|
|
63
|
+
declare function useBreakpoint(ssrFallback?: Breakpoint): Breakpoint;
|
|
64
|
+
/**
|
|
65
|
+
* Get a value based on current breakpoint with mobile-first fallback.
|
|
66
|
+
* Useful for responsive component props.
|
|
67
|
+
*
|
|
68
|
+
* @param values - Object mapping breakpoints to values
|
|
69
|
+
* @param fallback - Default value if no matching breakpoint found
|
|
70
|
+
* @returns Value for current breakpoint or closest smaller breakpoint
|
|
71
|
+
*/
|
|
72
|
+
declare function useBreakpointValue<T>(values: Partial<Record<Breakpoint, T>>, fallback?: T): T | undefined;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* SSR-safe hook for detecting mobile viewport (<768px).
|
|
76
|
+
*
|
|
77
|
+
* @param ssrFallback - Whether to assume mobile during SSR (default: false)
|
|
78
|
+
* @returns true if viewport width is less than 768px
|
|
79
|
+
*/
|
|
80
|
+
declare function useIsMobile(ssrFallback?: boolean): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* SSR-safe hook for detecting tablet viewport (768px - 1023px).
|
|
83
|
+
*
|
|
84
|
+
* @returns true if viewport width is between 768px and 1023px
|
|
85
|
+
*/
|
|
86
|
+
declare function useIsTablet(): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* SSR-safe hook for detecting desktop viewport (>=1024px).
|
|
89
|
+
*
|
|
90
|
+
* @returns true if viewport width is 1024px or greater
|
|
91
|
+
*/
|
|
92
|
+
declare function useIsDesktop(): boolean;
|
|
93
|
+
|
|
94
|
+
interface SwipeAction {
|
|
95
|
+
icon: React.ReactNode;
|
|
96
|
+
label: string;
|
|
97
|
+
onClick: () => void;
|
|
98
|
+
}
|
|
99
|
+
interface UseSwipeActionsOptions {
|
|
100
|
+
leftActions?: SwipeAction[];
|
|
101
|
+
rightActions?: SwipeAction[];
|
|
102
|
+
threshold?: number;
|
|
103
|
+
disabled?: boolean;
|
|
104
|
+
}
|
|
105
|
+
interface UseSwipeActionsReturn {
|
|
106
|
+
offsetX: number;
|
|
107
|
+
revealed: 'left' | 'right' | null;
|
|
108
|
+
isDragging: boolean;
|
|
109
|
+
handlers: {
|
|
110
|
+
onTouchStart: (e: TouchEvent) => void;
|
|
111
|
+
onTouchMove: (e: TouchEvent) => void;
|
|
112
|
+
onTouchEnd: () => void;
|
|
113
|
+
};
|
|
114
|
+
reset: () => void;
|
|
115
|
+
}
|
|
116
|
+
declare function useSwipeActions({ leftActions, rightActions, threshold, disabled, }?: UseSwipeActionsOptions): UseSwipeActionsReturn;
|
|
47
117
|
|
|
48
118
|
/**
|
|
49
119
|
* Button variants (shadcn-style)
|
|
50
120
|
*/
|
|
51
121
|
declare const buttonVariants: (props?: ({
|
|
52
122
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
53
|
-
size?: "
|
|
123
|
+
size?: "sm" | "lg" | "default" | "touch" | "icon" | "icon-sm" | "icon-touch" | null | undefined;
|
|
54
124
|
fullWidth?: boolean | null | undefined;
|
|
55
125
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
56
126
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -93,7 +163,7 @@ declare function ButtonGroupText({ asChild, className, ...props }: ButtonGroupTe
|
|
|
93
163
|
|
|
94
164
|
declare const inputVariants: (props?: ({
|
|
95
165
|
variant?: "outlined" | "filled" | "borderless" | "underlined" | null | undefined;
|
|
96
|
-
inputSize?: "
|
|
166
|
+
inputSize?: "sm" | "lg" | "default" | "touch" | null | undefined;
|
|
97
167
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
98
168
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
|
|
99
169
|
label?: string;
|
|
@@ -156,7 +226,7 @@ declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefA
|
|
|
156
226
|
|
|
157
227
|
declare const textareaVariants: (props?: ({
|
|
158
228
|
variant?: "outlined" | "filled" | "borderless" | "underlined" | null | undefined;
|
|
159
|
-
textareaSize?: "
|
|
229
|
+
textareaSize?: "sm" | "lg" | "default" | null | undefined;
|
|
160
230
|
resize?: "none" | "both" | "horizontal" | "vertical" | null | undefined;
|
|
161
231
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
162
232
|
interface TextareaProps extends Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>, VariantProps<typeof textareaVariants> {
|
|
@@ -216,6 +286,7 @@ declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.Sel
|
|
|
216
286
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
217
287
|
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
218
288
|
variant?: "outlined" | "filled" | "borderless" | "underlined" | null | undefined;
|
|
289
|
+
size?: "sm" | "lg" | "default" | "touch" | null | undefined;
|
|
219
290
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
220
291
|
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
221
292
|
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -225,7 +296,7 @@ declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive
|
|
|
225
296
|
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
226
297
|
|
|
227
298
|
declare const checkboxVariants: (props?: ({
|
|
228
|
-
size?: "
|
|
299
|
+
size?: "sm" | "lg" | "default" | "touch" | null | undefined;
|
|
229
300
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
230
301
|
interface CheckboxProps extends Omit<React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, "size">, VariantProps<typeof checkboxVariants> {
|
|
231
302
|
label?: string;
|
|
@@ -251,6 +322,9 @@ declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$
|
|
|
251
322
|
declare const radioGroupVariants: (props?: ({
|
|
252
323
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
253
324
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
325
|
+
declare const radioItemVariants: (props?: ({
|
|
326
|
+
size?: "sm" | "lg" | "default" | "touch" | null | undefined;
|
|
327
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
254
328
|
interface RadioGroupItemData {
|
|
255
329
|
value: string;
|
|
256
330
|
label: React$1.ReactNode;
|
|
@@ -258,7 +332,7 @@ interface RadioGroupItemData {
|
|
|
258
332
|
disabled?: boolean;
|
|
259
333
|
icon?: React$1.ReactNode;
|
|
260
334
|
}
|
|
261
|
-
interface RadioGroupProps extends Omit<React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, "orientation"> {
|
|
335
|
+
interface RadioGroupProps extends Omit<React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, "orientation">, VariantProps<typeof radioItemVariants> {
|
|
262
336
|
orientation?: "vertical" | "horizontal";
|
|
263
337
|
items?: RadioGroupItemData[];
|
|
264
338
|
itemClassName?: string;
|
|
@@ -307,20 +381,27 @@ interface RadioGroupProps extends Omit<React$1.ComponentPropsWithoutRef<typeof R
|
|
|
307
381
|
* ```
|
|
308
382
|
*/
|
|
309
383
|
declare const RadioGroup: React$1.ForwardRefExoticComponent<RadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
310
|
-
|
|
384
|
+
interface RadioGroupItemProps extends React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, VariantProps<typeof radioItemVariants> {
|
|
385
|
+
}
|
|
386
|
+
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
311
387
|
|
|
312
|
-
|
|
388
|
+
declare const switchVariants: (props?: ({
|
|
389
|
+
size?: "sm" | "lg" | "default" | "touch" | null | undefined;
|
|
390
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
391
|
+
type SwitchProps = React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> & VariantProps<typeof switchVariants> & {
|
|
313
392
|
offNode?: React$1.ReactNode;
|
|
314
393
|
onNode?: React$1.ReactNode;
|
|
315
394
|
};
|
|
316
|
-
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
395
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
396
|
+
size?: "sm" | "lg" | "default" | "touch" | null | undefined;
|
|
397
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
317
398
|
offNode?: React$1.ReactNode;
|
|
318
399
|
onNode?: React$1.ReactNode;
|
|
319
400
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
320
401
|
|
|
321
402
|
declare const toggleVariants: (props?: ({
|
|
322
403
|
variant?: "default" | "outline" | "solid" | null | undefined;
|
|
323
|
-
size?: "
|
|
404
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
324
405
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
325
406
|
interface ToggleProps extends React$1.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, VariantProps<typeof toggleVariants> {
|
|
326
407
|
icon?: React$1.ReactNode;
|
|
@@ -348,10 +429,10 @@ interface ToggleProps extends React$1.ComponentPropsWithoutRef<typeof TogglePrim
|
|
|
348
429
|
declare const Toggle: React$1.ForwardRefExoticComponent<ToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
349
430
|
|
|
350
431
|
declare const toggleGroupVariants: (props?: ({
|
|
351
|
-
size?: "
|
|
432
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
352
433
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
353
434
|
declare const toggleGroupItemVariants: (props?: ({
|
|
354
|
-
size?: "
|
|
435
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
355
436
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
356
437
|
interface ToggleGroupItemData {
|
|
357
438
|
value: string;
|
|
@@ -460,7 +541,7 @@ interface SliderProps extends React$1.ComponentPropsWithoutRef<typeof SliderPrim
|
|
|
460
541
|
declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
461
542
|
|
|
462
543
|
declare const inputGroupVariants: (props?: ({
|
|
463
|
-
size?: "
|
|
544
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
464
545
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
465
546
|
interface InputGroupProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof inputGroupVariants> {
|
|
466
547
|
leftAddon?: React$1.ReactNode;
|
|
@@ -859,7 +940,7 @@ type ToasterProps = React.ComponentProps<typeof Toaster$1>;
|
|
|
859
940
|
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
860
941
|
|
|
861
942
|
declare const progressVariants: (props?: ({
|
|
862
|
-
size?: "
|
|
943
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
863
944
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
864
945
|
interface ProgressProps extends React$1.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, VariantProps<typeof progressVariants> {
|
|
865
946
|
value?: number;
|
|
@@ -882,7 +963,7 @@ interface ProgressProps extends React$1.ComponentPropsWithoutRef<typeof Progress
|
|
|
882
963
|
declare const Progress: React$1.ForwardRefExoticComponent<ProgressProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
883
964
|
|
|
884
965
|
declare const spinnerVariants: (props?: ({
|
|
885
|
-
size?: "
|
|
966
|
+
size?: "xs" | "sm" | "lg" | "xl" | "default" | "2xl" | null | undefined;
|
|
886
967
|
variant?: "default" | "destructive" | "secondary" | "muted" | "light" | null | undefined;
|
|
887
968
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
888
969
|
interface SpinnerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children">, VariantProps<typeof spinnerVariants> {
|
|
@@ -956,7 +1037,7 @@ interface SkeletonCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
956
1037
|
declare const SkeletonCard: React$1.ForwardRefExoticComponent<SkeletonCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
957
1038
|
|
|
958
1039
|
declare const emptyVariants: (props?: ({
|
|
959
|
-
size?: "
|
|
1040
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
960
1041
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
961
1042
|
interface EmptyProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyVariants> {
|
|
962
1043
|
icon?: React$1.ReactNode;
|
|
@@ -1034,7 +1115,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
1034
1115
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
1035
1116
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1036
1117
|
declare const sheetVariants: (props?: ({
|
|
1037
|
-
side?: "
|
|
1118
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1038
1119
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1039
1120
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
1040
1121
|
hideClose?: boolean;
|
|
@@ -1404,11 +1485,11 @@ declare function SimpleTabs({ items, defaultValue, value, onValueChange, classNa
|
|
|
1404
1485
|
|
|
1405
1486
|
declare const cardVariants: (props?: ({
|
|
1406
1487
|
variant?: "default" | "outline" | "ghost" | "elevated" | null | undefined;
|
|
1407
|
-
size?: "
|
|
1488
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
1408
1489
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1409
1490
|
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
1410
1491
|
variant?: "default" | "outline" | "ghost" | "elevated" | null | undefined;
|
|
1411
|
-
size?: "
|
|
1492
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
1412
1493
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1413
1494
|
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1414
1495
|
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1634,7 +1715,7 @@ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<Omit<Collaps
|
|
|
1634
1715
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1635
1716
|
|
|
1636
1717
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => react_jsx_runtime.JSX.Element;
|
|
1637
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLSpanElement | HTMLDivElement | HTMLInputElement | HTMLLabelElement | HTMLParagraphElement | HTMLObjectElement | HTMLLinkElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLTimeElement |
|
|
1718
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLSpanElement | HTMLDivElement | HTMLInputElement | HTMLLabelElement | HTMLParagraphElement | HTMLObjectElement | HTMLProgressElement | HTMLSelectElement | HTMLLinkElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLTimeElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLIElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLPreElement | HTMLScriptElement | HTMLSourceElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
1638
1719
|
className?: string;
|
|
1639
1720
|
collapsedSize?: number | undefined;
|
|
1640
1721
|
collapsible?: boolean | undefined;
|
|
@@ -1727,7 +1808,7 @@ declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<'ul
|
|
|
1727
1808
|
declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1728
1809
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1729
1810
|
variant?: "default" | "outline" | null | undefined;
|
|
1730
|
-
size?: "
|
|
1811
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
1731
1812
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1732
1813
|
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, children, ...props }: React$1.ComponentProps<'button'> & {
|
|
1733
1814
|
asChild?: boolean;
|
|
@@ -1750,13 +1831,59 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
|
|
|
1750
1831
|
isActive?: boolean;
|
|
1751
1832
|
}): react_jsx_runtime.JSX.Element;
|
|
1752
1833
|
|
|
1834
|
+
interface MobileHeaderProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title'> {
|
|
1835
|
+
logo?: React$1.ReactNode;
|
|
1836
|
+
title?: React$1.ReactNode;
|
|
1837
|
+
rightActions?: React$1.ReactNode;
|
|
1838
|
+
showSidebarTrigger?: boolean;
|
|
1839
|
+
stickyTop?: boolean;
|
|
1840
|
+
}
|
|
1841
|
+
declare function MobileHeader({ logo, title, rightActions, showSidebarTrigger, stickyTop, className, ...props }: MobileHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1842
|
+
declare namespace MobileHeader {
|
|
1843
|
+
var displayName: string;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
interface BottomNavItem {
|
|
1847
|
+
key: string;
|
|
1848
|
+
label: string;
|
|
1849
|
+
icon: React$1.ReactNode;
|
|
1850
|
+
href?: string;
|
|
1851
|
+
onClick?: () => void;
|
|
1852
|
+
badge?: number | string;
|
|
1853
|
+
disabled?: boolean;
|
|
1854
|
+
}
|
|
1855
|
+
interface BottomNavigationProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
1856
|
+
items: BottomNavItem[];
|
|
1857
|
+
activeKey?: string;
|
|
1858
|
+
onActiveChange?: (key: string) => void;
|
|
1859
|
+
hideOnDesktop?: boolean;
|
|
1860
|
+
}
|
|
1861
|
+
declare function BottomNavigation({ items, activeKey, onActiveChange, hideOnDesktop, className, ...props }: BottomNavigationProps): react_jsx_runtime.JSX.Element;
|
|
1862
|
+
declare namespace BottomNavigation {
|
|
1863
|
+
var displayName: string;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
interface MobileNavContextValue {
|
|
1867
|
+
bottomNavVisible: boolean;
|
|
1868
|
+
setBottomNavVisible: (visible: boolean) => void;
|
|
1869
|
+
}
|
|
1870
|
+
declare function useMobileNav(): MobileNavContextValue;
|
|
1871
|
+
interface MobileNavigationProviderProps {
|
|
1872
|
+
children: React$1.ReactNode;
|
|
1873
|
+
hideBottomNavOnScroll?: boolean;
|
|
1874
|
+
}
|
|
1875
|
+
declare function MobileNavigationProvider({ children, hideBottomNavOnScroll, }: MobileNavigationProviderProps): react_jsx_runtime.JSX.Element;
|
|
1876
|
+
declare namespace MobileNavigationProvider {
|
|
1877
|
+
var displayName: string;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1753
1880
|
declare const tableVariants: (props?: ({
|
|
1754
1881
|
variant?: "default" | "striped" | "bordered" | null | undefined;
|
|
1755
|
-
size?: "
|
|
1882
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
1756
1883
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1757
1884
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & VariantProps<(props?: ({
|
|
1758
1885
|
variant?: "default" | "striped" | "bordered" | null | undefined;
|
|
1759
|
-
size?: "
|
|
1886
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
1760
1887
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
1761
1888
|
wrapperClassName?: string;
|
|
1762
1889
|
} & React$1.RefAttributes<HTMLTableElement>>;
|
|
@@ -1800,6 +1927,24 @@ interface TableColumn<T = any> {
|
|
|
1800
1927
|
resizable?: boolean;
|
|
1801
1928
|
/** Pinnable column */
|
|
1802
1929
|
pinnable?: boolean;
|
|
1930
|
+
/** Initial column size in pixels (used when column resizing is enabled, if not set, column will be sized automatically at 150px) */
|
|
1931
|
+
size?: number;
|
|
1932
|
+
/** Minimum column width in pixels when resizing */
|
|
1933
|
+
minSize?: number;
|
|
1934
|
+
/** Maximum column width in pixels when resizing */
|
|
1935
|
+
maxSize?: number;
|
|
1936
|
+
/** Show this column in mobile card view (default: true for first 4 columns) */
|
|
1937
|
+
mobileVisible?: boolean;
|
|
1938
|
+
/** Display priority in card view (1-10, lower = show first) */
|
|
1939
|
+
mobilePriority?: number;
|
|
1940
|
+
/** Card cell width layout */
|
|
1941
|
+
mobileWidth?: 'full' | 'half' | 'auto';
|
|
1942
|
+
/** Override title in card view */
|
|
1943
|
+
mobileLabel?: string;
|
|
1944
|
+
/** Mobile-specific render function */
|
|
1945
|
+
mobileRender?: (value: any, record: T, index: number) => React$1.ReactNode;
|
|
1946
|
+
/** Explicitly hide on mobile */
|
|
1947
|
+
mobileHidden?: boolean;
|
|
1803
1948
|
}
|
|
1804
1949
|
type ColumnsProps<T> = Array<Omit<TableColumn<T>, 'key'> & {
|
|
1805
1950
|
key: keyof T;
|
|
@@ -1909,6 +2054,24 @@ interface SimpleTableProps<T = any> extends VariantProps<typeof tableVariants> {
|
|
|
1909
2054
|
pagingPosition?: 'right' | 'left' | 'middle';
|
|
1910
2055
|
/** Number of records to load per lazy load call */
|
|
1911
2056
|
recordPerChunk?: number;
|
|
2057
|
+
/** Initial column pinning state */
|
|
2058
|
+
defaultColumnPinning?: {
|
|
2059
|
+
left?: string[];
|
|
2060
|
+
right?: string[];
|
|
2061
|
+
};
|
|
2062
|
+
/** Enable column resizing */
|
|
2063
|
+
/** require maxWidth for table container */
|
|
2064
|
+
enableColumnResizing?: boolean;
|
|
2065
|
+
/** Column resize mode: 'onChange' updates width while dragging, 'onEnd' updates on mouse up */
|
|
2066
|
+
columnResizeMode?: 'onChange' | 'onEnd';
|
|
2067
|
+
/** Mobile layout mode: 'table' keeps table, 'card' forces card view, 'auto' switches based on viewport (default: 'auto') */
|
|
2068
|
+
mobileLayout?: 'table' | 'card' | 'auto';
|
|
2069
|
+
/** Breakpoint for mobile detection (default: 'sm' = 640px) */
|
|
2070
|
+
mobileBreakpoint?: 'sm' | 'md';
|
|
2071
|
+
/** Custom actions renderer for mobile card view */
|
|
2072
|
+
mobileCardActions?: (record: T) => React$1.ReactNode;
|
|
2073
|
+
/** Custom card renderer for mobile view */
|
|
2074
|
+
renderMobileCard?: (record: T, columns: TableColumn<T>[]) => React$1.ReactNode;
|
|
1912
2075
|
}
|
|
1913
2076
|
interface MetaFilterValue {
|
|
1914
2077
|
filterType: string;
|
|
@@ -1960,7 +2123,7 @@ interface MetaFilterValue {
|
|
|
1960
2123
|
* onRowClick={(record) => console.log(record)}
|
|
1961
2124
|
* />
|
|
1962
2125
|
*/
|
|
1963
|
-
declare function SimpleTable<T = any>({ data, columns, caption, loading, loadingComponent, emptyMessage, rowKey, onRowClick, rowClassName, className, pagination, pageSize, currentPage, onPageChange, sortBy, sortDirection, onSortChange, variant, size, selectable, onSelectionChange, enableGlobalFilter, globalFilterPlaceholder, enableColumnOrdering, getCheckboxProps, selectedRowKey, enableExport, exportFileName, onExport, expandable, renderExpandedContent, getRowCanExpand, getRowExpandable, onExpandedChange, onLazyScrollLoad, scrollLoadThreshold, numberOfPageButtons, onClickExport, baseRowEstimateSize, expandContentEstimateSize, overScan, virtualizationThreshold, showIndex, customizeToolbar, manualSorting, onFilterChange, manualFiltering, lazyLoadIndicatorType, maxHeight, maxWidth, maxRecords, loadingText, pagingPosition, recordPerChunk, }: SimpleTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2126
|
+
declare function SimpleTable<T = any>({ data, columns, caption, loading, loadingComponent, emptyMessage, rowKey, onRowClick, rowClassName, className, pagination, pageSize, currentPage, onPageChange, sortBy, sortDirection, onSortChange, variant, size, selectable, onSelectionChange, enableGlobalFilter, globalFilterPlaceholder, enableColumnOrdering, getCheckboxProps, selectedRowKey, enableExport, exportFileName, onExport, expandable, renderExpandedContent, getRowCanExpand, getRowExpandable, onExpandedChange, onLazyScrollLoad, scrollLoadThreshold, numberOfPageButtons, onClickExport, baseRowEstimateSize, expandContentEstimateSize, overScan, virtualizationThreshold, showIndex, customizeToolbar, manualSorting, onFilterChange, manualFiltering, lazyLoadIndicatorType, maxHeight, maxWidth, maxRecords, loadingText, pagingPosition, recordPerChunk, defaultColumnPinning, enableColumnResizing, columnResizeMode, mobileLayout, mobileCardActions, renderMobileCard, }: SimpleTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1964
2127
|
|
|
1965
2128
|
interface DataTableProps<TData, TValue> {
|
|
1966
2129
|
columns: ColumnDef<TData, TValue>[];
|
|
@@ -2018,14 +2181,14 @@ interface DataTableProps<TData, TValue> {
|
|
|
2018
2181
|
declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, showColumnVisibility, showPagination, pageSize, className, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
2019
2182
|
|
|
2020
2183
|
declare const avatarVariants: (props?: ({
|
|
2021
|
-
size?: "
|
|
2184
|
+
size?: "sm" | "lg" | "xl" | "default" | "2xl" | null | undefined;
|
|
2022
2185
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2023
2186
|
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & VariantProps<(props?: ({
|
|
2024
|
-
size?: "
|
|
2187
|
+
size?: "sm" | "lg" | "xl" | "default" | "2xl" | null | undefined;
|
|
2025
2188
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2026
2189
|
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
2027
2190
|
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & VariantProps<(props?: ({
|
|
2028
|
-
size?: "
|
|
2191
|
+
size?: "sm" | "lg" | "xl" | "default" | "2xl" | null | undefined;
|
|
2029
2192
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2030
2193
|
interface SimpleAvatarProps extends VariantProps<typeof avatarVariants> {
|
|
2031
2194
|
/** Avatar image URL */
|
|
@@ -2241,7 +2404,7 @@ declare const ItemSeparator: React$1.ForwardRefExoticComponent<React$1.HTMLAttri
|
|
|
2241
2404
|
|
|
2242
2405
|
declare const badgeVariants: (props?: ({
|
|
2243
2406
|
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
2244
|
-
size?: "
|
|
2407
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
2245
2408
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2246
2409
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
2247
2410
|
removable?: boolean;
|
|
@@ -2373,7 +2536,7 @@ type CarouselPlugin = UseCarouselParameters[1];
|
|
|
2373
2536
|
type CarouselProps = {
|
|
2374
2537
|
opts?: CarouselOptions;
|
|
2375
2538
|
plugins?: CarouselPlugin;
|
|
2376
|
-
orientation?:
|
|
2539
|
+
orientation?: 'horizontal' | 'vertical';
|
|
2377
2540
|
setApi?: (api: CarouselApi) => void;
|
|
2378
2541
|
};
|
|
2379
2542
|
type CarouselContextProps = {
|
|
@@ -2404,7 +2567,7 @@ interface SimpleCarouselProps {
|
|
|
2404
2567
|
/** Array of carousel items */
|
|
2405
2568
|
items: CarouselItemData[];
|
|
2406
2569
|
/** Carousel orientation */
|
|
2407
|
-
orientation?:
|
|
2570
|
+
orientation?: 'horizontal' | 'vertical';
|
|
2408
2571
|
/** Show navigation arrows */
|
|
2409
2572
|
showArrows?: boolean;
|
|
2410
2573
|
/** Show dots indicators */
|
|
@@ -2473,8 +2636,8 @@ declare function SimpleCarousel({ items, orientation, showArrows, showDots, auto
|
|
|
2473
2636
|
type TypographyType = "h1" | "h2" | "h3" | "h4" | "p" | "lead" | "muted" | "small" | "code" | "blockquote" | "list" | "list-item";
|
|
2474
2637
|
declare const typographyVariants: (props?: ({
|
|
2475
2638
|
type?: "small" | "list" | "blockquote" | "code" | "h1" | "h2" | "h3" | "h4" | "p" | "muted" | "list-item" | "lead" | null | undefined;
|
|
2476
|
-
size?: "
|
|
2477
|
-
align?: "
|
|
2639
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
2640
|
+
align?: "left" | "right" | "center" | "justify" | null | undefined;
|
|
2478
2641
|
weight?: "bold" | "normal" | "medium" | "light" | "semibold" | null | undefined;
|
|
2479
2642
|
muted?: boolean | null | undefined;
|
|
2480
2643
|
truncate?: boolean | null | undefined;
|
|
@@ -2518,4 +2681,445 @@ declare const TypographyGroup: {
|
|
|
2518
2681
|
|
|
2519
2682
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2520
2683
|
|
|
2521
|
-
|
|
2684
|
+
/**
|
|
2685
|
+
* Default chart color palette - uses CSS variables for theme integration
|
|
2686
|
+
* CSS variables contain hex colors directly (e.g., #007bff)
|
|
2687
|
+
*/
|
|
2688
|
+
declare const CHART_COLORS: {
|
|
2689
|
+
readonly primary: "var(--chart-1)";
|
|
2690
|
+
readonly secondary: "var(--chart-2)";
|
|
2691
|
+
readonly tertiary: "var(--chart-3)";
|
|
2692
|
+
readonly quaternary: "var(--chart-4)";
|
|
2693
|
+
readonly quinary: "var(--chart-5)";
|
|
2694
|
+
readonly success: "#22a55b";
|
|
2695
|
+
readonly warning: "#f59e0b";
|
|
2696
|
+
readonly error: "#ef4444";
|
|
2697
|
+
readonly info: "var(--chart-1)";
|
|
2698
|
+
readonly muted: "var(--muted-foreground)";
|
|
2699
|
+
readonly foreground: "var(--foreground)";
|
|
2700
|
+
readonly background: "var(--background)";
|
|
2701
|
+
readonly grid: "var(--border)";
|
|
2702
|
+
};
|
|
2703
|
+
/**
|
|
2704
|
+
* Chart color palette array for multi-series charts
|
|
2705
|
+
*/
|
|
2706
|
+
declare const CHART_PALETTE: ("var(--chart-1)" | "var(--chart-2)" | "var(--chart-3)" | "var(--chart-4)" | "var(--chart-5)" | "#22a55b" | "#f59e0b" | "#ef4444")[];
|
|
2707
|
+
/**
|
|
2708
|
+
* Get theme-aware chart colors (for client-side usage)
|
|
2709
|
+
* Returns hex colors directly from CSS variables
|
|
2710
|
+
*/
|
|
2711
|
+
declare const getThemeColors: () => {
|
|
2712
|
+
primary: string;
|
|
2713
|
+
chart1: string;
|
|
2714
|
+
chart2: string;
|
|
2715
|
+
chart3: string;
|
|
2716
|
+
chart4: string;
|
|
2717
|
+
chart5: string;
|
|
2718
|
+
foreground: string;
|
|
2719
|
+
muted: string;
|
|
2720
|
+
grid: string;
|
|
2721
|
+
background: string;
|
|
2722
|
+
};
|
|
2723
|
+
/**
|
|
2724
|
+
* Common chart tooltip styles
|
|
2725
|
+
*/
|
|
2726
|
+
declare const tooltipStyle: {
|
|
2727
|
+
backgroundColor: string;
|
|
2728
|
+
border: string;
|
|
2729
|
+
borderRadius: string;
|
|
2730
|
+
padding: string;
|
|
2731
|
+
boxShadow: string;
|
|
2732
|
+
color: string;
|
|
2733
|
+
};
|
|
2734
|
+
/**
|
|
2735
|
+
* Common chart legend styles
|
|
2736
|
+
*/
|
|
2737
|
+
declare const legendStyle: {
|
|
2738
|
+
fontSize: string;
|
|
2739
|
+
color: string;
|
|
2740
|
+
};
|
|
2741
|
+
type ChartColor = keyof typeof CHART_COLORS;
|
|
2742
|
+
|
|
2743
|
+
interface LineChartDataKey {
|
|
2744
|
+
dataKey: string;
|
|
2745
|
+
name?: string;
|
|
2746
|
+
stroke?: string;
|
|
2747
|
+
strokeWidth?: number;
|
|
2748
|
+
dot?: boolean;
|
|
2749
|
+
type?: 'monotone' | 'linear' | 'step' | 'stepBefore' | 'stepAfter';
|
|
2750
|
+
}
|
|
2751
|
+
interface LineChartProps {
|
|
2752
|
+
/** Chart data array */
|
|
2753
|
+
data: Record<string, unknown>[];
|
|
2754
|
+
/** Data key for X axis */
|
|
2755
|
+
xAxisKey: string;
|
|
2756
|
+
/** Line configurations */
|
|
2757
|
+
lines: LineChartDataKey[];
|
|
2758
|
+
/** Chart width (default: 100%) */
|
|
2759
|
+
width?: number | string;
|
|
2760
|
+
/** Chart height (default: 300, use '100%' to fill container) */
|
|
2761
|
+
height?: number | string;
|
|
2762
|
+
/** Show grid lines */
|
|
2763
|
+
showGrid?: boolean;
|
|
2764
|
+
/** Show tooltip */
|
|
2765
|
+
showTooltip?: boolean;
|
|
2766
|
+
/** Show legend */
|
|
2767
|
+
showLegend?: boolean;
|
|
2768
|
+
/** Show X axis (default: true) */
|
|
2769
|
+
showXAxis?: boolean;
|
|
2770
|
+
/** Show Y axis (default: true) */
|
|
2771
|
+
showYAxis?: boolean;
|
|
2772
|
+
/** X axis label */
|
|
2773
|
+
xAxisLabel?: string;
|
|
2774
|
+
/** Y axis label */
|
|
2775
|
+
yAxisLabel?: string;
|
|
2776
|
+
/** Chart margins */
|
|
2777
|
+
margin?: {
|
|
2778
|
+
top?: number;
|
|
2779
|
+
right?: number;
|
|
2780
|
+
bottom?: number;
|
|
2781
|
+
left?: number;
|
|
2782
|
+
};
|
|
2783
|
+
/** Custom class name */
|
|
2784
|
+
className?: string;
|
|
2785
|
+
}
|
|
2786
|
+
/**
|
|
2787
|
+
* LineChart - Theme-aware line chart component
|
|
2788
|
+
*
|
|
2789
|
+
* @example
|
|
2790
|
+
* <LineChart
|
|
2791
|
+
* data={[{ month: 'Jan', sales: 100 }, { month: 'Feb', sales: 200 }]}
|
|
2792
|
+
* xAxisKey="month"
|
|
2793
|
+
* lines={[{ dataKey: 'sales', name: 'Sales' }]}
|
|
2794
|
+
* />
|
|
2795
|
+
*/
|
|
2796
|
+
declare function LineChart({ data, xAxisKey, lines, width, height, showGrid, showTooltip, showLegend, showXAxis, showYAxis, margin, className, }: LineChartProps): react_jsx_runtime.JSX.Element;
|
|
2797
|
+
|
|
2798
|
+
interface BarChartDataKey {
|
|
2799
|
+
dataKey: string;
|
|
2800
|
+
name?: string;
|
|
2801
|
+
fill?: string;
|
|
2802
|
+
stackId?: string;
|
|
2803
|
+
radius?: number | [number, number, number, number];
|
|
2804
|
+
}
|
|
2805
|
+
interface BarChartProps {
|
|
2806
|
+
/** Chart data array */
|
|
2807
|
+
data: Record<string, unknown>[];
|
|
2808
|
+
/** Data key for X axis */
|
|
2809
|
+
xAxisKey: string;
|
|
2810
|
+
/** Bar configurations */
|
|
2811
|
+
bars: BarChartDataKey[];
|
|
2812
|
+
/** Chart width (default: 100%) */
|
|
2813
|
+
width?: number | string;
|
|
2814
|
+
/** Chart height (default: 300) */
|
|
2815
|
+
height?: number;
|
|
2816
|
+
/** Show grid lines */
|
|
2817
|
+
showGrid?: boolean;
|
|
2818
|
+
/** Show tooltip */
|
|
2819
|
+
showTooltip?: boolean;
|
|
2820
|
+
/** Show legend */
|
|
2821
|
+
showLegend?: boolean;
|
|
2822
|
+
/** Layout direction */
|
|
2823
|
+
layout?: 'horizontal' | 'vertical';
|
|
2824
|
+
/** Chart margins */
|
|
2825
|
+
margin?: {
|
|
2826
|
+
top?: number;
|
|
2827
|
+
right?: number;
|
|
2828
|
+
bottom?: number;
|
|
2829
|
+
left?: number;
|
|
2830
|
+
};
|
|
2831
|
+
/** Custom class name */
|
|
2832
|
+
className?: string;
|
|
2833
|
+
}
|
|
2834
|
+
/**
|
|
2835
|
+
* BarChart - Theme-aware bar chart component
|
|
2836
|
+
*
|
|
2837
|
+
* @example
|
|
2838
|
+
* <BarChart
|
|
2839
|
+
* data={[{ category: 'A', value: 100 }, { category: 'B', value: 200 }]}
|
|
2840
|
+
* xAxisKey="category"
|
|
2841
|
+
* bars={[{ dataKey: 'value', name: 'Value' }]}
|
|
2842
|
+
* />
|
|
2843
|
+
*/
|
|
2844
|
+
declare function BarChart({ data, xAxisKey, bars, width, height, showGrid, showTooltip, showLegend, layout, margin, className, }: BarChartProps): react_jsx_runtime.JSX.Element;
|
|
2845
|
+
|
|
2846
|
+
interface PieChartDataItem {
|
|
2847
|
+
name: string;
|
|
2848
|
+
value: number;
|
|
2849
|
+
fill?: string;
|
|
2850
|
+
}
|
|
2851
|
+
interface PieChartProps {
|
|
2852
|
+
/** Chart data array */
|
|
2853
|
+
data: PieChartDataItem[];
|
|
2854
|
+
/** Data key for values (default: 'value') */
|
|
2855
|
+
dataKey?: string;
|
|
2856
|
+
/** Name key for labels (default: 'name') */
|
|
2857
|
+
nameKey?: string;
|
|
2858
|
+
/** Chart width (default: 100%) */
|
|
2859
|
+
width?: number | string;
|
|
2860
|
+
/** Chart height (default: 300) */
|
|
2861
|
+
height?: number;
|
|
2862
|
+
/** Show tooltip */
|
|
2863
|
+
showTooltip?: boolean;
|
|
2864
|
+
/** Show legend */
|
|
2865
|
+
showLegend?: boolean;
|
|
2866
|
+
/** Inner radius for donut chart (default: 0) */
|
|
2867
|
+
innerRadius?: number;
|
|
2868
|
+
/** Outer radius (default: 80) */
|
|
2869
|
+
outerRadius?: number;
|
|
2870
|
+
/** Show labels on slices */
|
|
2871
|
+
showLabel?: boolean;
|
|
2872
|
+
/** Chart margins */
|
|
2873
|
+
margin?: {
|
|
2874
|
+
top?: number;
|
|
2875
|
+
right?: number;
|
|
2876
|
+
bottom?: number;
|
|
2877
|
+
left?: number;
|
|
2878
|
+
};
|
|
2879
|
+
/** Custom class name */
|
|
2880
|
+
className?: string;
|
|
2881
|
+
}
|
|
2882
|
+
/**
|
|
2883
|
+
* PieChart - Theme-aware pie/donut chart component
|
|
2884
|
+
*
|
|
2885
|
+
* @example
|
|
2886
|
+
* <PieChart
|
|
2887
|
+
* data={[
|
|
2888
|
+
* { name: 'Category A', value: 400 },
|
|
2889
|
+
* { name: 'Category B', value: 300 },
|
|
2890
|
+
* ]}
|
|
2891
|
+
* />
|
|
2892
|
+
*
|
|
2893
|
+
* // Donut chart
|
|
2894
|
+
* <PieChart data={data} innerRadius={60} outerRadius={80} />
|
|
2895
|
+
*/
|
|
2896
|
+
declare function PieChart({ data, dataKey, nameKey, width, height, showTooltip, showLegend, innerRadius, outerRadius, showLabel, margin, className, }: PieChartProps): react_jsx_runtime.JSX.Element;
|
|
2897
|
+
|
|
2898
|
+
interface AreaChartDataKey {
|
|
2899
|
+
dataKey: string;
|
|
2900
|
+
name?: string;
|
|
2901
|
+
stroke?: string;
|
|
2902
|
+
fill?: string;
|
|
2903
|
+
fillOpacity?: number;
|
|
2904
|
+
stackId?: string;
|
|
2905
|
+
type?: 'monotone' | 'linear' | 'step' | 'stepBefore' | 'stepAfter';
|
|
2906
|
+
}
|
|
2907
|
+
interface AreaChartProps {
|
|
2908
|
+
/** Chart data array */
|
|
2909
|
+
data: Record<string, unknown>[];
|
|
2910
|
+
/** Data key for X axis */
|
|
2911
|
+
xAxisKey: string;
|
|
2912
|
+
/** Area configurations */
|
|
2913
|
+
areas: AreaChartDataKey[];
|
|
2914
|
+
/** Chart width (default: 100%) */
|
|
2915
|
+
width?: number | string;
|
|
2916
|
+
/** Chart height (default: 300) */
|
|
2917
|
+
height?: number;
|
|
2918
|
+
/** Show grid lines */
|
|
2919
|
+
showGrid?: boolean;
|
|
2920
|
+
/** Show tooltip */
|
|
2921
|
+
showTooltip?: boolean;
|
|
2922
|
+
/** Show legend */
|
|
2923
|
+
showLegend?: boolean;
|
|
2924
|
+
/** Chart margins */
|
|
2925
|
+
margin?: {
|
|
2926
|
+
top?: number;
|
|
2927
|
+
right?: number;
|
|
2928
|
+
bottom?: number;
|
|
2929
|
+
left?: number;
|
|
2930
|
+
};
|
|
2931
|
+
/** Custom class name */
|
|
2932
|
+
className?: string;
|
|
2933
|
+
}
|
|
2934
|
+
/**
|
|
2935
|
+
* AreaChart - Theme-aware area chart component
|
|
2936
|
+
*
|
|
2937
|
+
* @example
|
|
2938
|
+
* <AreaChart
|
|
2939
|
+
* data={[{ month: 'Jan', revenue: 1000 }, { month: 'Feb', revenue: 1500 }]}
|
|
2940
|
+
* xAxisKey="month"
|
|
2941
|
+
* areas={[{ dataKey: 'revenue', name: 'Revenue' }]}
|
|
2942
|
+
* />
|
|
2943
|
+
*/
|
|
2944
|
+
declare function AreaChart({ data, xAxisKey, areas, width, height, showGrid, showTooltip, showLegend, margin, className, }: AreaChartProps): react_jsx_runtime.JSX.Element;
|
|
2945
|
+
|
|
2946
|
+
interface ScatterChartDataSeries {
|
|
2947
|
+
name: string;
|
|
2948
|
+
data: Record<string, unknown>[];
|
|
2949
|
+
fill?: string;
|
|
2950
|
+
}
|
|
2951
|
+
interface ScatterChartProps {
|
|
2952
|
+
/** Scatter data series */
|
|
2953
|
+
series: ScatterChartDataSeries[];
|
|
2954
|
+
/** Data key for X axis */
|
|
2955
|
+
xAxisKey: string;
|
|
2956
|
+
/** Data key for Y axis */
|
|
2957
|
+
yAxisKey: string;
|
|
2958
|
+
/** Data key for Z axis (bubble size) */
|
|
2959
|
+
zAxisKey?: string;
|
|
2960
|
+
/** Chart width (default: 100%) */
|
|
2961
|
+
width?: number | string;
|
|
2962
|
+
/** Chart height (default: 300) */
|
|
2963
|
+
height?: number;
|
|
2964
|
+
/** Show grid lines */
|
|
2965
|
+
showGrid?: boolean;
|
|
2966
|
+
/** Show tooltip */
|
|
2967
|
+
showTooltip?: boolean;
|
|
2968
|
+
/** Show legend */
|
|
2969
|
+
showLegend?: boolean;
|
|
2970
|
+
/** X axis label */
|
|
2971
|
+
xAxisLabel?: string;
|
|
2972
|
+
/** Y axis label */
|
|
2973
|
+
yAxisLabel?: string;
|
|
2974
|
+
/** Chart margins */
|
|
2975
|
+
margin?: {
|
|
2976
|
+
top?: number;
|
|
2977
|
+
right?: number;
|
|
2978
|
+
bottom?: number;
|
|
2979
|
+
left?: number;
|
|
2980
|
+
};
|
|
2981
|
+
/** Custom class name */
|
|
2982
|
+
className?: string;
|
|
2983
|
+
}
|
|
2984
|
+
/**
|
|
2985
|
+
* ScatterChart - Theme-aware scatter/bubble chart component
|
|
2986
|
+
*
|
|
2987
|
+
* @example
|
|
2988
|
+
* <ScatterChart
|
|
2989
|
+
* series={[
|
|
2990
|
+
* { name: 'Series A', data: [{ x: 100, y: 200 }, { x: 120, y: 100 }] }
|
|
2991
|
+
* ]}
|
|
2992
|
+
* xAxisKey="x"
|
|
2993
|
+
* yAxisKey="y"
|
|
2994
|
+
* />
|
|
2995
|
+
*/
|
|
2996
|
+
declare function ScatterChart({ series, xAxisKey, yAxisKey, zAxisKey, width, height, showGrid, showTooltip, showLegend, margin, className, }: ScatterChartProps): react_jsx_runtime.JSX.Element;
|
|
2997
|
+
|
|
2998
|
+
interface RadarChartDataKey {
|
|
2999
|
+
dataKey: string;
|
|
3000
|
+
name?: string;
|
|
3001
|
+
stroke?: string;
|
|
3002
|
+
fill?: string;
|
|
3003
|
+
fillOpacity?: number;
|
|
3004
|
+
}
|
|
3005
|
+
interface RadarChartProps {
|
|
3006
|
+
/** Chart data array */
|
|
3007
|
+
data: Record<string, unknown>[];
|
|
3008
|
+
/** Data key for angle axis (categories) */
|
|
3009
|
+
angleKey: string;
|
|
3010
|
+
/** Radar configurations */
|
|
3011
|
+
radars: RadarChartDataKey[];
|
|
3012
|
+
/** Chart width (default: 100%) */
|
|
3013
|
+
width?: number | string;
|
|
3014
|
+
/** Chart height (default: 300) */
|
|
3015
|
+
height?: number;
|
|
3016
|
+
/** Show tooltip */
|
|
3017
|
+
showTooltip?: boolean;
|
|
3018
|
+
/** Show legend */
|
|
3019
|
+
showLegend?: boolean;
|
|
3020
|
+
/** Outer radius (default: 80) */
|
|
3021
|
+
outerRadius?: number | string;
|
|
3022
|
+
/** Chart margins */
|
|
3023
|
+
margin?: {
|
|
3024
|
+
top?: number;
|
|
3025
|
+
right?: number;
|
|
3026
|
+
bottom?: number;
|
|
3027
|
+
left?: number;
|
|
3028
|
+
};
|
|
3029
|
+
/** Custom class name */
|
|
3030
|
+
className?: string;
|
|
3031
|
+
/** Domain for radius axis */
|
|
3032
|
+
domain?: [number, number];
|
|
3033
|
+
}
|
|
3034
|
+
/**
|
|
3035
|
+
* RadarChart - Theme-aware radar/spider chart component
|
|
3036
|
+
*
|
|
3037
|
+
* @example
|
|
3038
|
+
* <RadarChart
|
|
3039
|
+
* data={[
|
|
3040
|
+
* { subject: 'Math', score: 80 },
|
|
3041
|
+
* { subject: 'Science', score: 90 },
|
|
3042
|
+
* ]}
|
|
3043
|
+
* angleKey="subject"
|
|
3044
|
+
* radars={[{ dataKey: 'score', name: 'Score' }]}
|
|
3045
|
+
* />
|
|
3046
|
+
*/
|
|
3047
|
+
declare function RadarChart({ data, angleKey, radars, width, height, showTooltip, showLegend, outerRadius, margin, domain, className, }: RadarChartProps): react_jsx_runtime.JSX.Element;
|
|
3048
|
+
|
|
3049
|
+
/** Available theme names */
|
|
3050
|
+
declare const THEMES: {
|
|
3051
|
+
readonly default: "default";
|
|
3052
|
+
readonly sunset: "sunset";
|
|
3053
|
+
readonly lavender: "lavender";
|
|
3054
|
+
readonly rose: "rose";
|
|
3055
|
+
readonly slate: "slate";
|
|
3056
|
+
readonly midnight: "midnight";
|
|
3057
|
+
readonly emerald: "emerald";
|
|
3058
|
+
readonly amber: "amber";
|
|
3059
|
+
readonly crimson: "crimson";
|
|
3060
|
+
};
|
|
3061
|
+
type ThemeName = keyof typeof THEMES;
|
|
3062
|
+
type ThemeMode = 'light' | 'dark' | 'system';
|
|
3063
|
+
/** Theme metadata for UI selectors */
|
|
3064
|
+
interface ThemeInfo {
|
|
3065
|
+
name: ThemeName;
|
|
3066
|
+
label: string;
|
|
3067
|
+
description: string;
|
|
3068
|
+
primaryColor: string;
|
|
3069
|
+
}
|
|
3070
|
+
/** Theme catalog with metadata */
|
|
3071
|
+
declare const THEME_CATALOG: ThemeInfo[];
|
|
3072
|
+
/**
|
|
3073
|
+
* Get the current theme from the document
|
|
3074
|
+
*/
|
|
3075
|
+
declare function getCurrentTheme(): ThemeName;
|
|
3076
|
+
/**
|
|
3077
|
+
* Get the current color mode (light/dark)
|
|
3078
|
+
*/
|
|
3079
|
+
declare function getCurrentMode(): 'light' | 'dark';
|
|
3080
|
+
/**
|
|
3081
|
+
* Set the theme on the document root
|
|
3082
|
+
*/
|
|
3083
|
+
declare function setTheme(theme: ThemeName): void;
|
|
3084
|
+
/**
|
|
3085
|
+
* Set the color mode (light/dark)
|
|
3086
|
+
*/
|
|
3087
|
+
declare function setMode(mode: ThemeMode): void;
|
|
3088
|
+
/**
|
|
3089
|
+
* Initialize theme from localStorage or system preference
|
|
3090
|
+
*/
|
|
3091
|
+
declare function initializeTheme(): void;
|
|
3092
|
+
interface ThemeContextValue {
|
|
3093
|
+
theme: ThemeName;
|
|
3094
|
+
mode: ThemeMode;
|
|
3095
|
+
resolvedMode: 'light' | 'dark';
|
|
3096
|
+
setTheme: (theme: ThemeName) => void;
|
|
3097
|
+
setMode: (mode: ThemeMode) => void;
|
|
3098
|
+
}
|
|
3099
|
+
interface ThemeProviderProps {
|
|
3100
|
+
children: ReactNode;
|
|
3101
|
+
/** Default theme (default: 'default') */
|
|
3102
|
+
defaultTheme?: ThemeName;
|
|
3103
|
+
/** Default mode (default: 'system') */
|
|
3104
|
+
defaultMode?: ThemeMode;
|
|
3105
|
+
/** Storage key for theme persistence */
|
|
3106
|
+
storageKey?: string;
|
|
3107
|
+
}
|
|
3108
|
+
/**
|
|
3109
|
+
* ThemeProvider component for React applications
|
|
3110
|
+
*
|
|
3111
|
+
* @example
|
|
3112
|
+
* <ThemeProvider defaultTheme="ocean" defaultMode="dark">
|
|
3113
|
+
* <App />
|
|
3114
|
+
* </ThemeProvider>
|
|
3115
|
+
*/
|
|
3116
|
+
declare function ThemeProvider({ children, defaultTheme, defaultMode, storageKey, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
3117
|
+
/**
|
|
3118
|
+
* Hook to access theme context
|
|
3119
|
+
*
|
|
3120
|
+
* @example
|
|
3121
|
+
* const { theme, setTheme, mode, setMode } = useTheme();
|
|
3122
|
+
*/
|
|
3123
|
+
declare function useTheme(): ThemeContextValue;
|
|
3124
|
+
|
|
3125
|
+
export { Accordion, type AccordionItemData, type AccordionProps, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AreaChart, type AreaChartDataKey, type AreaChartProps, AspectRatio, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupData, type AvatarGroupProps, AvatarImage, BREAKPOINTS, Badge, type BadgeProps, BarChart, type BarChartDataKey, type BarChartProps, Blockquote, type BottomNavItem, BottomNavigation, type BottomNavigationProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type Breakpoint, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, CHART_COLORS, CHART_PALETTE, Calendar, CalendarDayButton, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, type CarouselItemData, CarouselNext, CarouselPrevious, type ChartColor, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleItem, CollapsibleTrigger, type ColumnsProps, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DotsSpinner, type DotsSpinnerProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, type EmptyProps, Field, type FieldError, type FieldProps, Form, type FormInstance, FormItem, type FormItemProps, type FormItemVariant, FormList, type FormProps, H1, H2, H3, H4, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, InlineCode, Input, InputGroup, type InputGroupProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemGroup, ItemList, type ItemProps, ItemSeparator, Label, type LabelProps, Lead, LineChart, type LineChartDataKey, type LineChartProps, List, ListItem, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileHeader, type MobileHeaderProps, MobileNavigationProvider, type MobileNavigationProviderProps, Muted, type NamePath, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, P, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PieChart, type PieChartDataItem, type PieChartProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProductCard, ProfileCard, Progress, type ProgressProps, RadarChart, type RadarChartDataKey, type RadarChartProps, RadioGroup, RadioGroupItem, type RadioGroupItemData, type RadioGroupItemProps, type RadioGroupProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Rule, ScatterChart, type ScatterChartDataSeries, type ScatterChartProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContextProps, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleAvatar, type SimpleAvatarProps, SimpleCard, type SimpleCardProps, SimpleCarousel, type SimpleCarouselProps, SimpleTable, type SimpleTableProps, SimpleTabs, type SimpleTabsProps, SimpleTooltip, type SimpleTooltipProps, Skeleton, SkeletonCard, type SkeletonCardProps, type SkeletonProps, Slider, type SliderProps, Small, Spinner, type SpinnerProps, type SwipeAction, Switch, type SwitchProps, THEMES, THEME_CATALOG, type TabItem, Table, TableBody, TableCaption, TableCell, type TableColumn, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, type ThemeInfo, type ThemeMode, type ThemeName, ThemeProvider, type ThemeProviderProps, Toast, type ToastData, type ToastId, type ToastProps, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemData, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, TypographyGroup, type TypographyProps, type TypographyType, type UseSwipeActionsOptions, type UseSwipeActionsReturn, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, checkboxVariants, cn, composeRules, emailRule, emptyVariants, fieldVariants, getCurrentMode, getCurrentTheme, getInitials, getThemeColors, initializeTheme, inputGroupVariants, inputVariants, itemVariants, labelVariants, legendStyle, maxLengthRule, maxValueRule, minLengthRule, minValueRule, navigationMenuTriggerStyle, numberRule, patternRule, progressVariants, radioGroupVariants, radioItemVariants, requiredRule, separatorVariants, setMode, setTheme, skeletonVariants, spinnerVariants, switchVariants, tableVariants, textareaVariants, toastVariants, toggleGroupVariants, toggleVariants, tooltipStyle, urlRule, useBreakpoint, useBreakpointValue, useCarousel, useForm, useIsDesktop, useIsMobile, useIsTablet, useMobileNav, useSidebar, useSwipeActions, useTheme, useToast, useWatch };
|