@nicorp/nui 0.1.2 → 0.1.3

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
@@ -16,6 +16,7 @@ import { ForwardRefExoticComponent } from 'react';
16
16
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
17
17
  import { JSX } from 'react/jsx-runtime';
18
18
  import * as LabelPrimitive from '@radix-ui/react-label';
19
+ import { Legend } from 'recharts';
19
20
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
20
21
  import * as PopoverPrimitive from '@radix-ui/react-popover';
21
22
  import * as ProgressPrimitive from '@radix-ui/react-progress';
@@ -31,6 +32,7 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
31
32
  import { Toaster as Toaster_2 } from 'sonner';
32
33
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
33
34
  import * as TogglePrimitive from '@radix-ui/react-toggle';
35
+ import { Tooltip as Tooltip_2 } from 'recharts';
34
36
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
35
37
  import { UseEmblaCarouselType } from 'embla-carousel-react';
36
38
  import { VariantProps } from 'class-variance-authority';
@@ -79,6 +81,11 @@ export declare const AlertDialogTrigger: React_2.ForwardRefExoticComponent<Alert
79
81
 
80
82
  export declare const AlertTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLHeadingElement> & React_2.RefAttributes<HTMLParagraphElement>>;
81
83
 
84
+ export declare const AppShell: React_2.ForwardRefExoticComponent<AppShellProps & React_2.RefAttributes<HTMLDivElement>>;
85
+
86
+ declare interface AppShellProps extends React_2.HTMLAttributes<HTMLDivElement> {
87
+ }
88
+
82
89
  export declare const AspectRatio: ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & RefAttributes<HTMLDivElement>>;
83
90
 
84
91
  export declare const Avatar: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
@@ -188,6 +195,12 @@ declare type CarouselProps = {
188
195
  setApi?: (api: CarouselApi) => void;
189
196
  };
190
197
 
198
+ export declare const ChartContainer: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
199
+
200
+ export declare const ChartLegend: typeof Legend;
201
+
202
+ export declare const ChartTooltip: typeof Tooltip_2;
203
+
191
204
  export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
192
205
 
193
206
  export declare function cn(...inputs: ClassValue[]): string;
@@ -374,6 +387,13 @@ export declare const ContextMenuSubTrigger: React_2.ForwardRefExoticComponent<Om
374
387
 
375
388
  export declare const ContextMenuTrigger: React_2.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React_2.RefAttributes<HTMLSpanElement>>;
376
389
 
390
+ export declare const CopyInput: React_2.ForwardRefExoticComponent<CopyInputProps & React_2.RefAttributes<HTMLInputElement>>;
391
+
392
+ declare interface CopyInputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
393
+ label?: string;
394
+ value: string;
395
+ }
396
+
377
397
  export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, pageSize, }: DataTableProps<TData, TValue>): JSX.Element;
378
398
 
379
399
  export declare function DataTableColumnHeader({ column, title, className, }: {
@@ -508,6 +528,8 @@ export declare interface GridProps extends React_2.HTMLAttributes<HTMLDivElement
508
528
  gap?: number | string;
509
529
  }
510
530
 
531
+ export declare const Header: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLElement> & React_2.RefAttributes<HTMLElement>>;
532
+
511
533
  export declare function Heading({ className, level, as, children, ...props }: HeadingProps): JSX.Element;
512
534
 
513
535
  export declare interface HeadingProps extends React_2.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
@@ -530,6 +552,12 @@ export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React
530
552
 
531
553
  export declare type InputProps = React_2.InputHTMLAttributes<HTMLInputElement>;
532
554
 
555
+ export declare const JsonViewer: React_2.ForwardRefExoticComponent<JsonViewerProps & React_2.RefAttributes<HTMLPreElement>>;
556
+
557
+ declare interface JsonViewerProps extends React_2.HTMLAttributes<HTMLPreElement> {
558
+ data: any;
559
+ }
560
+
533
561
  export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLabelElement>>;
534
562
 
535
563
  export declare function Lead({ className, ...props }: LeadProps): JSX.Element;
@@ -537,6 +565,19 @@ export declare function Lead({ className, ...props }: LeadProps): JSX.Element;
537
565
  export declare interface LeadProps extends React_2.HTMLAttributes<HTMLParagraphElement> {
538
566
  }
539
567
 
568
+ export declare const Main: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLElement> & React_2.RefAttributes<HTMLElement>>;
569
+
570
+ export declare function MetricCard({ title, value, description, trend, trendLabel, icon, className, ...props }: MetricCardProps): JSX.Element;
571
+
572
+ declare interface MetricCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
573
+ title: string;
574
+ value: string | number;
575
+ description?: string;
576
+ trend?: number;
577
+ trendLabel?: string;
578
+ icon?: React_2.ReactNode;
579
+ }
580
+
540
581
  export declare function Muted({ className, ...props }: MutedProps): JSX.Element;
541
582
 
542
583
  export declare interface MutedProps extends React_2.HTMLAttributes<HTMLParagraphElement> {
@@ -703,6 +744,8 @@ declare const sheetVariants: (props?: ({
703
744
  side?: "top" | "right" | "bottom" | "left" | null | undefined;
704
745
  } & ClassProp) | undefined) => string;
705
746
 
747
+ export declare const Sidebar: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
748
+
706
749
  export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
707
750
 
708
751
  export declare const Slider: React_2.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
@@ -712,6 +755,16 @@ export declare interface StackProps extends React_2.HTMLAttributes<HTMLDivElemen
712
755
  align?: "start" | "end" | "center" | "stretch";
713
756
  }
714
757
 
758
+ export declare function StatusBadge({ className, status, dot, children, ...props }: StatusBadgeProps): JSX.Element;
759
+
760
+ export declare interface StatusBadgeProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statusBadgeVariants> {
761
+ dot?: boolean;
762
+ }
763
+
764
+ declare const statusBadgeVariants: (props?: ({
765
+ status?: "error" | "success" | "neutral" | "warning" | "info" | null | undefined;
766
+ } & ClassProp) | undefined) => string;
767
+
715
768
  export declare function Stepper({ steps, activeStep, orientation, className, }: StepperProps): JSX.Element;
716
769
 
717
770
  export declare interface StepperProps {
@@ -783,6 +836,16 @@ export declare const textVariants: (props?: ({
783
836
  leading?: "normal" | "tight" | "relaxed" | null | undefined;
784
837
  } & ClassProp) | undefined) => string;
785
838
 
839
+ export declare const Timeline: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
840
+
841
+ export declare const TimelineConnector: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
842
+
843
+ export declare const TimelineContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
844
+
845
+ export declare const TimelineIcon: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
846
+
847
+ export declare const TimelineItem: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
848
+
786
849
  export declare function TimePicker({ value, onChange, is24Hour, disabled, className, }: TimePickerProps): JSX.Element;
787
850
 
788
851
  export declare interface TimePickerProps {