@nicorp/nui 0.1.0 → 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.cjs.js +76 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +109 -0
- package/dist/index.es.js +21647 -10178
- package/dist/index.es.js.map +1 -1
- package/dist/nui.css +1 -1
- package/package.json +2 -1
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>>;
|
|
@@ -96,6 +103,11 @@ export declare const badgeVariants: (props?: ({
|
|
|
96
103
|
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
97
104
|
} & ClassProp) | undefined) => string;
|
|
98
105
|
|
|
106
|
+
export declare function Blockquote({ className, ...props }: BlockquoteProps): JSX.Element;
|
|
107
|
+
|
|
108
|
+
export declare interface BlockquoteProps extends React_2.HTMLAttributes<HTMLQuoteElement> {
|
|
109
|
+
}
|
|
110
|
+
|
|
99
111
|
export declare const Box: React_2.ForwardRefExoticComponent<BoxProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
100
112
|
|
|
101
113
|
export declare interface BoxProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
@@ -183,10 +195,18 @@ declare type CarouselProps = {
|
|
|
183
195
|
setApi?: (api: CarouselApi) => void;
|
|
184
196
|
};
|
|
185
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
|
+
|
|
186
204
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
187
205
|
|
|
188
206
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
189
207
|
|
|
208
|
+
export declare function Code({ className, ...props }: CodeProps): JSX.Element;
|
|
209
|
+
|
|
190
210
|
export declare function CodeBlock({ code, language, showLineNumbers, className, }: CodeBlockProps): JSX.Element;
|
|
191
211
|
|
|
192
212
|
export declare interface CodeBlockProps {
|
|
@@ -196,6 +216,9 @@ export declare interface CodeBlockProps {
|
|
|
196
216
|
className?: string;
|
|
197
217
|
}
|
|
198
218
|
|
|
219
|
+
export declare interface CodeProps extends React_2.HTMLAttributes<HTMLElement> {
|
|
220
|
+
}
|
|
221
|
+
|
|
199
222
|
export declare const Collapsible: React_2.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
200
223
|
|
|
201
224
|
export declare const CollapsibleContent: React_2.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -364,6 +387,13 @@ export declare const ContextMenuSubTrigger: React_2.ForwardRefExoticComponent<Om
|
|
|
364
387
|
|
|
365
388
|
export declare const ContextMenuTrigger: React_2.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
366
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
|
+
|
|
367
397
|
export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, pageSize, }: DataTableProps<TData, TValue>): JSX.Element;
|
|
368
398
|
|
|
369
399
|
export declare function DataTableColumnHeader({ column, title, className, }: {
|
|
@@ -498,6 +528,18 @@ export declare interface GridProps extends React_2.HTMLAttributes<HTMLDivElement
|
|
|
498
528
|
gap?: number | string;
|
|
499
529
|
}
|
|
500
530
|
|
|
531
|
+
export declare const Header: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLElement> & React_2.RefAttributes<HTMLElement>>;
|
|
532
|
+
|
|
533
|
+
export declare function Heading({ className, level, as, children, ...props }: HeadingProps): JSX.Element;
|
|
534
|
+
|
|
535
|
+
export declare interface HeadingProps extends React_2.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
|
|
536
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export declare const headingVariants: (props?: ({
|
|
540
|
+
level?: 1 | 2 | 4 | 3 | 5 | 6 | null | undefined;
|
|
541
|
+
} & ClassProp) | undefined) => string;
|
|
542
|
+
|
|
501
543
|
export declare const HoverCard: React_2.FC<HoverCardPrimitive.HoverCardProps>;
|
|
502
544
|
|
|
503
545
|
export declare const HoverCardContent: React_2.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -510,8 +552,37 @@ export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React
|
|
|
510
552
|
|
|
511
553
|
export declare type InputProps = React_2.InputHTMLAttributes<HTMLInputElement>;
|
|
512
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
|
+
|
|
513
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>>;
|
|
514
562
|
|
|
563
|
+
export declare function Lead({ className, ...props }: LeadProps): JSX.Element;
|
|
564
|
+
|
|
565
|
+
export declare interface LeadProps extends React_2.HTMLAttributes<HTMLParagraphElement> {
|
|
566
|
+
}
|
|
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
|
+
|
|
581
|
+
export declare function Muted({ className, ...props }: MutedProps): JSX.Element;
|
|
582
|
+
|
|
583
|
+
export declare interface MutedProps extends React_2.HTMLAttributes<HTMLParagraphElement> {
|
|
584
|
+
}
|
|
585
|
+
|
|
515
586
|
export declare const NavigationMenu: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLElement>>;
|
|
516
587
|
|
|
517
588
|
export declare const NavigationMenuContent: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -673,6 +744,8 @@ declare const sheetVariants: (props?: ({
|
|
|
673
744
|
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
674
745
|
} & ClassProp) | undefined) => string;
|
|
675
746
|
|
|
747
|
+
export declare const Sidebar: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
748
|
+
|
|
676
749
|
export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
677
750
|
|
|
678
751
|
export declare const Slider: React_2.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
|
|
@@ -682,6 +755,16 @@ export declare interface StackProps extends React_2.HTMLAttributes<HTMLDivElemen
|
|
|
682
755
|
align?: "start" | "end" | "center" | "stretch";
|
|
683
756
|
}
|
|
684
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
|
+
|
|
685
768
|
export declare function Stepper({ steps, activeStep, orientation, className, }: StepperProps): JSX.Element;
|
|
686
769
|
|
|
687
770
|
export declare interface StepperProps {
|
|
@@ -733,10 +816,36 @@ export declare interface TagInputProps {
|
|
|
733
816
|
maxTags?: number;
|
|
734
817
|
}
|
|
735
818
|
|
|
819
|
+
declare function Text_2({ className, size, weight, variant, leading, as: Tag, children, ...props }: TextProps): JSX.Element;
|
|
820
|
+
export { Text_2 as Text }
|
|
821
|
+
|
|
736
822
|
export declare const Textarea: React_2.ForwardRefExoticComponent<TextareaProps & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
737
823
|
|
|
738
824
|
export declare type TextareaProps = React_2.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
739
825
|
|
|
826
|
+
export declare interface TextProps extends VariantProps<typeof textVariants> {
|
|
827
|
+
as?: "p" | "span" | "div";
|
|
828
|
+
className?: string;
|
|
829
|
+
children?: React_2.ReactNode;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export declare const textVariants: (props?: ({
|
|
833
|
+
size?: "sm" | "lg" | "base" | "xl" | "xs" | null | undefined;
|
|
834
|
+
weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
|
|
835
|
+
variant?: "default" | "destructive" | "muted" | "primary" | "success" | null | undefined;
|
|
836
|
+
leading?: "normal" | "tight" | "relaxed" | null | undefined;
|
|
837
|
+
} & ClassProp) | undefined) => string;
|
|
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
|
+
|
|
740
849
|
export declare function TimePicker({ value, onChange, is24Hour, disabled, className, }: TimePickerProps): JSX.Element;
|
|
741
850
|
|
|
742
851
|
export declare interface TimePickerProps {
|