@hilum/ui 3.2.3 → 3.2.4
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 +348 -32
- package/dist/index.js +2511 -676
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/alert-dialog.tsx +19 -6
- package/src/components/callout.tsx +99 -0
- package/src/components/card.tsx +13 -0
- package/src/components/chart.tsx +398 -29
- package/src/components/color-picker.tsx +39 -45
- package/src/components/combobox.tsx +83 -64
- package/src/components/command.tsx +35 -0
- package/src/components/context-menu.tsx +49 -27
- package/src/components/data-transfer-controls.tsx +156 -0
- package/src/components/dialog.tsx +19 -6
- package/src/components/dropdown-menu.tsx +50 -28
- package/src/components/file-dropzone.tsx +171 -0
- package/src/components/help-tooltip.tsx +90 -0
- package/src/components/media-asset-card.tsx +118 -0
- package/src/components/menubar.tsx +52 -30
- package/src/components/popover.tsx +31 -17
- package/src/components/rich-text-editor.tsx +448 -0
- package/src/components/searchable-table.tsx +412 -0
- package/src/components/select.tsx +44 -28
- package/src/components/sidebar.tsx +105 -14
- package/src/components/stat-card.tsx +122 -8
- package/src/components/status-badge.tsx +144 -0
- package/src/components/titled-card.tsx +102 -0
- package/src/components/url-redirect-prompt.tsx +85 -0
- package/src/index.ts +10 -0
- package/src/lib/mobile-popper-sheet.ts +78 -0
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { ClassValue } from 'clsx';
|
|
|
2
2
|
import * as _radix_ui_react_dropdown_menu from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { DropdownMenu, Accordion, AlertDialog, AspectRatio, Avatar as Avatar$1, Checkbox, Collapsible,
|
|
5
|
+
import { DropdownMenu, Accordion, AlertDialog, AspectRatio, Avatar as Avatar$1, Checkbox, Collapsible, Dialog, ContextMenu, HoverCard, Label as Label$1, Menubar, NavigationMenu, Popover, Progress, RadioGroup, ScrollArea, Select, Separator as Separator$1, Slider, Switch, Tabs, ToggleGroup, Toggle, Tooltip } from 'radix-ui';
|
|
6
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
8
|
import { DayPicker } from 'react-day-picker';
|
|
9
9
|
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
10
|
-
import
|
|
10
|
+
import * as RechartsPrimitive from 'recharts';
|
|
11
11
|
export { Area, AreaChart, Bar, BarChart, CartesianGrid, Cell, Legend, Line, LineChart, Pie, PieChart, Tooltip as RechartsTooltip, TooltipProps as RechartsTooltipProps, XAxis, YAxis } from 'recharts';
|
|
12
12
|
import { ColumnDef } from '@tanstack/react-table';
|
|
13
13
|
export { ColumnDef, createColumnHelper } from '@tanstack/react-table';
|
|
@@ -243,6 +243,21 @@ declare namespace Calendar {
|
|
|
243
243
|
var displayName: string;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
+
declare const calloutVariants: (props?: ({
|
|
247
|
+
tone?: "destructive" | "default" | "info" | "success" | "warning" | null | undefined;
|
|
248
|
+
compact?: boolean | null | undefined;
|
|
249
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
250
|
+
interface CalloutProps extends Omit<React.ComponentProps<"div">, "title">, VariantProps<typeof calloutVariants> {
|
|
251
|
+
title?: React.ReactNode;
|
|
252
|
+
description?: React.ReactNode;
|
|
253
|
+
icon?: React.ReactNode;
|
|
254
|
+
actions?: React.ReactNode;
|
|
255
|
+
}
|
|
256
|
+
declare function Callout({ title, description, icon, actions, tone, compact, className, children, role, ...props }: CalloutProps): react_jsx_runtime.JSX.Element;
|
|
257
|
+
declare namespace Callout {
|
|
258
|
+
var displayName: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
246
261
|
interface CardHeadingAction {
|
|
247
262
|
label: string;
|
|
248
263
|
href?: string;
|
|
@@ -269,6 +284,7 @@ declare const CardTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTML
|
|
|
269
284
|
declare const CardDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
270
285
|
declare const CardContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
271
286
|
declare const CardFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
287
|
+
declare const CardAction: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
272
288
|
declare const CardMedia: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
273
289
|
|
|
274
290
|
type CarouselApi = UseEmblaCarouselType[1];
|
|
@@ -295,22 +311,73 @@ declare const CHART_COLORS: {
|
|
|
295
311
|
subtle: "#f5f5f5";
|
|
296
312
|
dark: "#171717";
|
|
297
313
|
};
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
314
|
+
declare const THEMES: {
|
|
315
|
+
readonly light: "";
|
|
316
|
+
readonly dark: ".dark";
|
|
317
|
+
};
|
|
318
|
+
type ChartConfig = {
|
|
319
|
+
[k in string]: {
|
|
320
|
+
label?: React.ReactNode;
|
|
321
|
+
icon?: React.ComponentType;
|
|
322
|
+
} & ({
|
|
323
|
+
color?: string;
|
|
324
|
+
theme?: never;
|
|
325
|
+
} | {
|
|
326
|
+
color?: never;
|
|
327
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
328
|
+
});
|
|
329
|
+
};
|
|
330
|
+
type ChartContainerProps = React.ComponentProps<"div"> & {
|
|
331
|
+
config?: ChartConfig;
|
|
301
332
|
height?: number;
|
|
302
|
-
|
|
303
|
-
|
|
333
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
334
|
+
};
|
|
335
|
+
declare function ChartContainer({ id, className, children, config, height, style, ...props }: ChartContainerProps): react_jsx_runtime.JSX.Element;
|
|
304
336
|
declare namespace ChartContainer {
|
|
305
337
|
var displayName: string;
|
|
306
338
|
}
|
|
307
|
-
|
|
339
|
+
declare const ChartStyle: ({ id, config }: {
|
|
340
|
+
id: string;
|
|
341
|
+
config: ChartConfig;
|
|
342
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
343
|
+
type ChartTooltipContentProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "content"> & {
|
|
344
|
+
active?: boolean;
|
|
345
|
+
payload?: Array<Record<string, any>>;
|
|
346
|
+
indicator?: "line" | "dot" | "dashed";
|
|
347
|
+
hideLabel?: boolean;
|
|
348
|
+
hideIndicator?: boolean;
|
|
349
|
+
label?: React.ReactNode;
|
|
350
|
+
labelFormatter?: (value: React.ReactNode, payload: Array<Record<string, any>>) => React.ReactNode;
|
|
308
351
|
labelClassName?: string;
|
|
309
|
-
|
|
310
|
-
|
|
352
|
+
formatter?: (value: unknown, name: unknown, item: Record<string, any>, index: number, payload: unknown) => React.ReactNode;
|
|
353
|
+
color?: string;
|
|
354
|
+
nameKey?: string;
|
|
355
|
+
labelKey?: string;
|
|
356
|
+
};
|
|
357
|
+
type ChartTooltipProps = React.ComponentProps<typeof RechartsPrimitive.Tooltip> | ChartTooltipContentProps;
|
|
358
|
+
declare function ChartTooltip(props: ChartTooltipProps): react_jsx_runtime.JSX.Element;
|
|
311
359
|
declare namespace ChartTooltip {
|
|
312
360
|
var displayName: string;
|
|
313
361
|
}
|
|
362
|
+
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: ChartTooltipContentProps): react_jsx_runtime.JSX.Element | null;
|
|
363
|
+
declare namespace ChartTooltipContent {
|
|
364
|
+
var displayName: string;
|
|
365
|
+
}
|
|
366
|
+
declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
|
|
367
|
+
type ChartLegendPayloadItem = {
|
|
368
|
+
color?: string;
|
|
369
|
+
dataKey?: string | number;
|
|
370
|
+
value?: string | number;
|
|
371
|
+
};
|
|
372
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
373
|
+
hideIcon?: boolean;
|
|
374
|
+
nameKey?: string;
|
|
375
|
+
payload?: ChartLegendPayloadItem[];
|
|
376
|
+
verticalAlign?: "top" | "middle" | "bottom";
|
|
377
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
378
|
+
declare namespace ChartLegendContent {
|
|
379
|
+
var displayName: string;
|
|
380
|
+
}
|
|
314
381
|
|
|
315
382
|
declare const CheckboxRoot: React.ForwardRefExoticComponent<Omit<Checkbox.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
316
383
|
|
|
@@ -394,6 +461,22 @@ declare namespace CommandPalette {
|
|
|
394
461
|
var displayName: string;
|
|
395
462
|
}
|
|
396
463
|
|
|
464
|
+
declare const DialogRoot: React.FC<Dialog.DialogProps>;
|
|
465
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<Dialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
466
|
+
declare const DialogClose: React.ForwardRefExoticComponent<Dialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
467
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<Dialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
468
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<Dialog.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
469
|
+
declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
470
|
+
declare namespace DialogHeader {
|
|
471
|
+
var displayName: string;
|
|
472
|
+
}
|
|
473
|
+
declare function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
474
|
+
declare namespace DialogFooter {
|
|
475
|
+
var displayName: string;
|
|
476
|
+
}
|
|
477
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<Dialog.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
478
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<Dialog.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
479
|
+
|
|
397
480
|
interface CommandProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
398
481
|
onSelect?: (value: string) => void;
|
|
399
482
|
}
|
|
@@ -420,6 +503,15 @@ declare function CommandShortcut({ className, ...props }: React.HTMLAttributes<H
|
|
|
420
503
|
declare namespace CommandShortcut {
|
|
421
504
|
var displayName: string;
|
|
422
505
|
}
|
|
506
|
+
interface CommandDialogProps extends React.ComponentProps<typeof DialogRoot> {
|
|
507
|
+
title?: string;
|
|
508
|
+
description?: string;
|
|
509
|
+
className?: string;
|
|
510
|
+
}
|
|
511
|
+
declare function CommandDialog({ title, description, children, className, ...props }: CommandDialogProps): react_jsx_runtime.JSX.Element;
|
|
512
|
+
declare namespace CommandDialog {
|
|
513
|
+
var displayName: string;
|
|
514
|
+
}
|
|
423
515
|
|
|
424
516
|
declare const ContextMenuRoot: React.FC<ContextMenu.ContextMenuProps>;
|
|
425
517
|
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenu.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -457,6 +549,36 @@ interface DataTableProps<TData> {
|
|
|
457
549
|
}
|
|
458
550
|
declare function DataTable<TData>({ columns, data, searchKey, searchPlaceholder, pageSize, showPagination, }: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
459
551
|
|
|
552
|
+
interface DataTransferScopeOption {
|
|
553
|
+
value: string;
|
|
554
|
+
label: string;
|
|
555
|
+
}
|
|
556
|
+
interface DataTransferAction {
|
|
557
|
+
label: string;
|
|
558
|
+
shortLabel?: string;
|
|
559
|
+
ariaLabel?: string;
|
|
560
|
+
icon?: React.ReactNode;
|
|
561
|
+
loading?: boolean;
|
|
562
|
+
disabled?: boolean;
|
|
563
|
+
onSelect: () => void;
|
|
564
|
+
}
|
|
565
|
+
interface DataTransferControlsProps {
|
|
566
|
+
scopeValue?: string;
|
|
567
|
+
onScopeChange?: (value: string) => void;
|
|
568
|
+
scopeOptions?: DataTransferScopeOption[];
|
|
569
|
+
scopePlaceholder?: string;
|
|
570
|
+
actions: DataTransferAction[];
|
|
571
|
+
compact?: boolean;
|
|
572
|
+
compactLabel?: string;
|
|
573
|
+
className?: string;
|
|
574
|
+
selectClassName?: string;
|
|
575
|
+
actionGroupClassName?: string;
|
|
576
|
+
}
|
|
577
|
+
declare function DataTransferControls({ scopeValue, onScopeChange, scopeOptions, scopePlaceholder, actions, compact, compactLabel, className, selectClassName, actionGroupClassName, }: DataTransferControlsProps): react_jsx_runtime.JSX.Element;
|
|
578
|
+
declare namespace DataTransferControls {
|
|
579
|
+
var displayName: string;
|
|
580
|
+
}
|
|
581
|
+
|
|
460
582
|
declare const formatDate: (date: Date) => string;
|
|
461
583
|
interface DatePickerProps {
|
|
462
584
|
value?: Date | undefined;
|
|
@@ -488,22 +610,6 @@ declare namespace DescriptionList {
|
|
|
488
610
|
var displayName: string;
|
|
489
611
|
}
|
|
490
612
|
|
|
491
|
-
declare const DialogRoot: React.FC<Dialog.DialogProps>;
|
|
492
|
-
declare const DialogTrigger: React.ForwardRefExoticComponent<Dialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
493
|
-
declare const DialogClose: React.ForwardRefExoticComponent<Dialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
494
|
-
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<Dialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
495
|
-
declare const DialogContent: React.ForwardRefExoticComponent<Omit<Dialog.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
496
|
-
declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
497
|
-
declare namespace DialogHeader {
|
|
498
|
-
var displayName: string;
|
|
499
|
-
}
|
|
500
|
-
declare function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
501
|
-
declare namespace DialogFooter {
|
|
502
|
-
var displayName: string;
|
|
503
|
-
}
|
|
504
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<Dialog.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
505
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<Dialog.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
506
|
-
|
|
507
613
|
declare const DrawerRoot: typeof vaul.Root;
|
|
508
614
|
declare const DrawerTrigger: React.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
509
615
|
declare const DrawerPortal: typeof vaul.Portal;
|
|
@@ -553,6 +659,29 @@ declare namespace Field {
|
|
|
553
659
|
var displayName: string;
|
|
554
660
|
}
|
|
555
661
|
|
|
662
|
+
type FileDropzoneSelectedFile = Pick<File, "name" | "size">;
|
|
663
|
+
interface FileDropzoneProps extends Omit<React.HTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onDrop" | "onDragOver" | "onDragLeave"> {
|
|
664
|
+
accept?: string;
|
|
665
|
+
multiple?: boolean;
|
|
666
|
+
disabled?: boolean;
|
|
667
|
+
loading?: boolean;
|
|
668
|
+
loadingText?: React.ReactNode;
|
|
669
|
+
label?: React.ReactNode;
|
|
670
|
+
activeLabel?: React.ReactNode;
|
|
671
|
+
description?: React.ReactNode;
|
|
672
|
+
icon?: React.ReactNode;
|
|
673
|
+
selectedFiles?: readonly FileDropzoneSelectedFile[] | null;
|
|
674
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
675
|
+
inputClassName?: string;
|
|
676
|
+
inputName?: string;
|
|
677
|
+
onFilesSelected?: (files: File[]) => void;
|
|
678
|
+
}
|
|
679
|
+
declare function formatFileSize(bytes: number): string;
|
|
680
|
+
declare function FileDropzone({ accept, multiple, disabled, loading, loadingText, label, activeLabel, description, icon, selectedFiles, inputRef, inputClassName, inputName, onFilesSelected, className, id, tabIndex, onKeyDown, onClick, ...props }: FileDropzoneProps): react_jsx_runtime.JSX.Element;
|
|
681
|
+
declare namespace FileDropzone {
|
|
682
|
+
var displayName: string;
|
|
683
|
+
}
|
|
684
|
+
|
|
556
685
|
interface GridListProps {
|
|
557
686
|
children: React.ReactNode;
|
|
558
687
|
columns?: 2 | 3 | 4;
|
|
@@ -590,6 +719,19 @@ declare namespace GridListAccentCard {
|
|
|
590
719
|
var displayName: string;
|
|
591
720
|
}
|
|
592
721
|
|
|
722
|
+
interface HelpTooltipProps {
|
|
723
|
+
text: string;
|
|
724
|
+
learnMoreUrl?: string;
|
|
725
|
+
learnMoreURL?: string;
|
|
726
|
+
placement?: "top" | "right" | "bottom" | "left";
|
|
727
|
+
className?: string;
|
|
728
|
+
contentClassName?: string;
|
|
729
|
+
}
|
|
730
|
+
declare function HelpTooltip({ text, learnMoreUrl, learnMoreURL, placement, className, contentClassName, }: HelpTooltipProps): react_jsx_runtime.JSX.Element;
|
|
731
|
+
declare namespace HelpTooltip {
|
|
732
|
+
var displayName: string;
|
|
733
|
+
}
|
|
734
|
+
|
|
593
735
|
declare const HoverCardRoot: React.FC<HoverCard.HoverCardProps>;
|
|
594
736
|
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCard.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
595
737
|
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCard.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -669,6 +811,23 @@ declare const Kbd: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<
|
|
|
669
811
|
|
|
670
812
|
declare const Label: React.ForwardRefExoticComponent<Omit<Label$1.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
671
813
|
|
|
814
|
+
interface MediaAssetCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
815
|
+
name: React.ReactNode;
|
|
816
|
+
src?: string | null;
|
|
817
|
+
alt?: string;
|
|
818
|
+
meta?: React.ReactNode;
|
|
819
|
+
details?: React.ReactNode;
|
|
820
|
+
actions?: React.ReactNode;
|
|
821
|
+
selected?: boolean;
|
|
822
|
+
mediaType?: "image" | "file" | "video" | "unknown";
|
|
823
|
+
orientation?: "responsive" | "grid" | "list";
|
|
824
|
+
onSelect?: () => void;
|
|
825
|
+
}
|
|
826
|
+
declare function MediaAssetCard({ name, src, alt, meta, details, actions, selected, mediaType, orientation, onSelect, className, onClick, ...props }: MediaAssetCardProps): react_jsx_runtime.JSX.Element;
|
|
827
|
+
declare namespace MediaAssetCard {
|
|
828
|
+
var displayName: string;
|
|
829
|
+
}
|
|
830
|
+
|
|
672
831
|
interface MediaObjectProps {
|
|
673
832
|
media: React.ReactNode;
|
|
674
833
|
children: React.ReactNode;
|
|
@@ -873,6 +1032,24 @@ declare namespace ResizableHandle {
|
|
|
873
1032
|
var displayName: string;
|
|
874
1033
|
}
|
|
875
1034
|
|
|
1035
|
+
type RichTextImageUrlHandler = () => string | null | undefined | Promise<string | null | undefined>;
|
|
1036
|
+
interface RichTextEditorProps {
|
|
1037
|
+
value: string;
|
|
1038
|
+
onChange: (html: string) => void;
|
|
1039
|
+
placeholder?: string;
|
|
1040
|
+
minHeight?: string | number;
|
|
1041
|
+
id?: string;
|
|
1042
|
+
"aria-label"?: string;
|
|
1043
|
+
className?: string;
|
|
1044
|
+
editorClassName?: string;
|
|
1045
|
+
toolbarClassName?: string;
|
|
1046
|
+
onRequestImageUrl?: RichTextImageUrlHandler;
|
|
1047
|
+
}
|
|
1048
|
+
declare function RichTextEditor({ value, onChange, placeholder, minHeight, id, "aria-label": ariaLabel, className, editorClassName, toolbarClassName, onRequestImageUrl, }: RichTextEditorProps): react_jsx_runtime.JSX.Element;
|
|
1049
|
+
declare namespace RichTextEditor {
|
|
1050
|
+
var displayName: string;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
876
1053
|
declare const ScrollAreaRoot: React.ForwardRefExoticComponent<Omit<ScrollArea.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
877
1054
|
|
|
878
1055
|
interface SectionHeadingAction {
|
|
@@ -890,6 +1067,55 @@ interface SectionHeadingProps {
|
|
|
890
1067
|
}
|
|
891
1068
|
declare function SectionHeading({ title, description, actions, border, className, }: SectionHeadingProps): react_jsx_runtime.JSX.Element;
|
|
892
1069
|
|
|
1070
|
+
interface SearchableTableFilterOption {
|
|
1071
|
+
value: string;
|
|
1072
|
+
label: string;
|
|
1073
|
+
}
|
|
1074
|
+
interface SearchableTableColumn<T = unknown> {
|
|
1075
|
+
key: string;
|
|
1076
|
+
label: string;
|
|
1077
|
+
render?: (item: T) => React.ReactNode;
|
|
1078
|
+
sortable?: boolean;
|
|
1079
|
+
sortAccessor?: (item: T) => string | number | Date | null | undefined;
|
|
1080
|
+
className?: string;
|
|
1081
|
+
}
|
|
1082
|
+
interface SearchableTableProps<T extends {
|
|
1083
|
+
id: string | number;
|
|
1084
|
+
}> {
|
|
1085
|
+
data: T[];
|
|
1086
|
+
columns: SearchableTableColumn<T>[];
|
|
1087
|
+
searchPlaceholder?: string;
|
|
1088
|
+
searchTerm: string;
|
|
1089
|
+
onSearchChange: (value: string) => void;
|
|
1090
|
+
filters?: Record<string, {
|
|
1091
|
+
value: string;
|
|
1092
|
+
onChange: (value: string) => void;
|
|
1093
|
+
options: SearchableTableFilterOption[];
|
|
1094
|
+
placeholder: string;
|
|
1095
|
+
}>;
|
|
1096
|
+
emptyState?: {
|
|
1097
|
+
icon?: React.ReactNode;
|
|
1098
|
+
title: string;
|
|
1099
|
+
description: string;
|
|
1100
|
+
action?: {
|
|
1101
|
+
label: string;
|
|
1102
|
+
href?: string;
|
|
1103
|
+
onClick?: () => void;
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
actions?: (item: T) => React.ReactNode;
|
|
1107
|
+
mobileCard?: (item: T) => React.ReactNode;
|
|
1108
|
+
tableClassName?: string;
|
|
1109
|
+
pagination?: {
|
|
1110
|
+
pageSize?: number;
|
|
1111
|
+
currentPage: number;
|
|
1112
|
+
onPageChange: (page: number) => void;
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1115
|
+
declare function SearchableTable<T extends {
|
|
1116
|
+
id: string | number;
|
|
1117
|
+
}>({ data, columns, searchPlaceholder, searchTerm, onSearchChange, filters, emptyState, actions, mobileCard, tableClassName, pagination, }: SearchableTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1118
|
+
|
|
893
1119
|
declare const SelectRoot: React.FC<Select.SelectProps>;
|
|
894
1120
|
declare const SelectGroup: React.ForwardRefExoticComponent<Select.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
895
1121
|
declare const SelectValue: React.ForwardRefExoticComponent<Select.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -921,10 +1147,19 @@ declare namespace SheetFooter {
|
|
|
921
1147
|
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<Dialog.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
922
1148
|
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<Dialog.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
923
1149
|
|
|
1150
|
+
declare const SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
1151
|
+
declare const SIDEBAR_COOKIE_MAX_AGE: number;
|
|
1152
|
+
declare const SIDEBAR_WIDTH = "16rem";
|
|
1153
|
+
declare const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
1154
|
+
declare const SIDEBAR_WIDTH_ICON = "3.5rem";
|
|
1155
|
+
declare const SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
924
1156
|
interface SidebarContextValue {
|
|
925
1157
|
state: "expanded" | "collapsed";
|
|
926
1158
|
open: boolean;
|
|
927
|
-
setOpen:
|
|
1159
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
1160
|
+
openMobile: boolean;
|
|
1161
|
+
setOpenMobile: React.Dispatch<React.SetStateAction<boolean>>;
|
|
1162
|
+
isMobile: boolean;
|
|
928
1163
|
toggleSidebar: () => void;
|
|
929
1164
|
}
|
|
930
1165
|
declare function useSidebar(): SidebarContextValue;
|
|
@@ -934,7 +1169,7 @@ interface SidebarProviderProps extends React.ComponentProps<"div"> {
|
|
|
934
1169
|
onOpenChange?: (open: boolean) => void;
|
|
935
1170
|
}
|
|
936
1171
|
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange, className, style, children, ...props }: SidebarProviderProps): react_jsx_runtime.JSX.Element;
|
|
937
|
-
interface SidebarProps extends React.ComponentProps<"
|
|
1172
|
+
interface SidebarProps extends React.ComponentProps<"div"> {
|
|
938
1173
|
side?: "left" | "right";
|
|
939
1174
|
variant?: "sidebar" | "floating" | "inset";
|
|
940
1175
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
@@ -947,6 +1182,7 @@ declare function SidebarHeader({ className, ...props }: React.ComponentProps<"di
|
|
|
947
1182
|
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
948
1183
|
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
949
1184
|
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
1185
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
|
|
950
1186
|
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
951
1187
|
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
952
1188
|
asChild?: boolean;
|
|
@@ -1011,19 +1247,62 @@ interface StackedListItemProps {
|
|
|
1011
1247
|
declare function StackedListItem({ children, href, onClick, className }: StackedListItemProps): react_jsx_runtime.JSX.Element;
|
|
1012
1248
|
|
|
1013
1249
|
interface StatCardProps {
|
|
1014
|
-
label
|
|
1015
|
-
|
|
1250
|
+
label?: string;
|
|
1251
|
+
title?: string;
|
|
1252
|
+
value?: string | number;
|
|
1016
1253
|
trend?: {
|
|
1017
1254
|
value: string;
|
|
1018
1255
|
direction: "up" | "down" | "neutral";
|
|
1019
1256
|
};
|
|
1020
1257
|
icon?: React.ReactNode;
|
|
1258
|
+
children?: React.ReactNode;
|
|
1259
|
+
actionButtons?: React.ReactNode;
|
|
1260
|
+
className?: string;
|
|
1261
|
+
containerClassName?: string;
|
|
1262
|
+
titleClassName?: string;
|
|
1263
|
+
valueClassName?: string;
|
|
1264
|
+
}
|
|
1265
|
+
interface StatCardGridProps {
|
|
1266
|
+
children: React.ReactNode;
|
|
1267
|
+
maxSlots?: number;
|
|
1268
|
+
onAddCard?: () => void;
|
|
1021
1269
|
className?: string;
|
|
1270
|
+
showEmptySlots?: boolean;
|
|
1022
1271
|
}
|
|
1023
|
-
|
|
1272
|
+
interface StatCardSlotProps {
|
|
1273
|
+
onAddCard?: () => void;
|
|
1274
|
+
className?: string;
|
|
1275
|
+
label?: string;
|
|
1276
|
+
}
|
|
1277
|
+
declare function StatCard({ label, title, value, trend, icon, children, actionButtons, className, containerClassName, titleClassName, valueClassName, }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
1024
1278
|
declare namespace StatCard {
|
|
1025
1279
|
var displayName: string;
|
|
1026
1280
|
}
|
|
1281
|
+
declare function StatCardSlot({ onAddCard, className, label }: StatCardSlotProps): react_jsx_runtime.JSX.Element;
|
|
1282
|
+
declare namespace StatCardSlot {
|
|
1283
|
+
var displayName: string;
|
|
1284
|
+
}
|
|
1285
|
+
declare function StatCardGrid({ children, maxSlots, onAddCard, className, showEmptySlots, }: StatCardGridProps): react_jsx_runtime.JSX.Element;
|
|
1286
|
+
declare namespace StatCardGrid {
|
|
1287
|
+
var displayName: string;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
type StatusBadgeVariant = NonNullable<React.ComponentProps<typeof Badge>["variant"]>;
|
|
1291
|
+
interface StatusBadgeProps extends Omit<React.ComponentProps<typeof Badge>, "children" | "variant"> {
|
|
1292
|
+
status?: string | null;
|
|
1293
|
+
label?: React.ReactNode;
|
|
1294
|
+
variant?: StatusBadgeVariant;
|
|
1295
|
+
variantMap?: Record<string, StatusBadgeVariant>;
|
|
1296
|
+
labelMap?: Record<string, React.ReactNode>;
|
|
1297
|
+
showDot?: boolean;
|
|
1298
|
+
dotClassName?: string;
|
|
1299
|
+
}
|
|
1300
|
+
declare function statusLabel(status?: string | null): string;
|
|
1301
|
+
declare function statusBadgeVariantFor(status?: string | null, variantMap?: Record<string, StatusBadgeVariant>): StatusBadgeVariant;
|
|
1302
|
+
declare function StatusBadge({ status, label, variant, variantMap, labelMap, showDot, dotClassName, className, ...props }: StatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
1303
|
+
declare namespace StatusBadge {
|
|
1304
|
+
var displayName: string;
|
|
1305
|
+
}
|
|
1027
1306
|
|
|
1028
1307
|
type StepStatus = "complete" | "current" | "upcoming";
|
|
1029
1308
|
interface Step {
|
|
@@ -1063,6 +1342,24 @@ declare const TabsContent: React.ForwardRefExoticComponent<Omit<Tabs.TabsContent
|
|
|
1063
1342
|
|
|
1064
1343
|
declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
|
|
1065
1344
|
|
|
1345
|
+
interface TitledCardProps {
|
|
1346
|
+
title?: string;
|
|
1347
|
+
subtitle?: string;
|
|
1348
|
+
children?: React.ReactNode;
|
|
1349
|
+
actionButtons?: React.ReactNode;
|
|
1350
|
+
icon?: React.ComponentType<{
|
|
1351
|
+
className?: string;
|
|
1352
|
+
}>;
|
|
1353
|
+
className?: string;
|
|
1354
|
+
contentClassName?: string;
|
|
1355
|
+
containerClassName?: string;
|
|
1356
|
+
titleClassName?: string;
|
|
1357
|
+
}
|
|
1358
|
+
declare function TitledCard({ title, subtitle, children, actionButtons, icon: Icon, className, contentClassName, containerClassName, titleClassName, }: TitledCardProps): react_jsx_runtime.JSX.Element;
|
|
1359
|
+
declare namespace TitledCard {
|
|
1360
|
+
var displayName: string;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1066
1363
|
declare const ToggleGroupRoot: React.ForwardRefExoticComponent<((Omit<ToggleGroup.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroup.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
1067
1364
|
variant?: "default" | "outline" | "brand" | null | undefined;
|
|
1068
1365
|
size?: "sm" | "lg" | "icon" | "default" | "icon-sm" | "icon-lg" | null | undefined;
|
|
@@ -1085,4 +1382,23 @@ declare const TooltipRoot: React.FC<Tooltip.TooltipProps>;
|
|
|
1085
1382
|
declare const TooltipTrigger: React.ForwardRefExoticComponent<Tooltip.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1086
1383
|
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<Tooltip.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1087
1384
|
|
|
1088
|
-
|
|
1385
|
+
declare function normalizeUrlHandle(value: string): string;
|
|
1386
|
+
declare function urlResourcePath(prefix: string, handle: string): string;
|
|
1387
|
+
declare function hasUrlHandleChanged(originalHandle?: string, nextHandle?: string): boolean;
|
|
1388
|
+
interface UrlRedirectPromptProps {
|
|
1389
|
+
originalHandle?: string;
|
|
1390
|
+
nextHandle?: string;
|
|
1391
|
+
pathPrefix: string;
|
|
1392
|
+
checked: boolean;
|
|
1393
|
+
onCheckedChange: (checked: boolean) => void;
|
|
1394
|
+
title?: React.ReactNode;
|
|
1395
|
+
description?: React.ReactNode;
|
|
1396
|
+
switchLabel?: string;
|
|
1397
|
+
className?: string;
|
|
1398
|
+
}
|
|
1399
|
+
declare function UrlRedirectPrompt({ originalHandle, nextHandle, pathPrefix, checked, onCheckedChange, title, description, switchLabel, className, }: UrlRedirectPromptProps): react_jsx_runtime.JSX.Element | null;
|
|
1400
|
+
declare namespace UrlRedirectPrompt {
|
|
1401
|
+
var displayName: string;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
export { AccordionRoot as Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenuContent, AccountMenuHeader, AccountMenuItem, AccountMenuSection, AccountMenuSeparator, ActionPanel, ActivityFeed, Alert, AlertDescription, AlertDialogRoot as AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatioRoot as AspectRatio, Avatar, AvatarFallback, AvatarImage, AvatarStack, type AvatarStackItem, AvatarWithStatus, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem$1 as BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupItem, CHART_COLORS, Calendar, type CalendarProps, Callout, type CalloutProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardMedia, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, CheckboxRoot as Checkbox, CollapsibleRoot as Collapsible, CollapsibleContent, CollapsibleTrigger, ColorInput, type ColorInputProps, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandPalette, type CommandPaletteItem, CommandSeparator, CommandShortcut, ContextMenuRoot as ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, type DataTransferAction, DataTransferControls, type DataTransferControlsProps, type DataTransferScopeOption, DatePicker, type DescriptionItem, DescriptionList, DialogRoot as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogTitle, DialogTrigger, DrawerRoot as Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenuRoot as DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type FeedEvent, Field, FileDropzone, type FileDropzoneProps, type FileDropzoneSelectedFile, GridList, GridListAccentCard, GridListCard, HelpTooltip, type HelpTooltipProps, HoverCardRoot as HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputNumber, type InputNumberProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, Label, MediaAssetCard, type MediaAssetCardProps, MediaObject, MenubarRoot as Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenuRoot as NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, PageHeading, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PopoverRoot as Popover, PopoverClose, PopoverContent, PopoverTrigger, ProgressRoot as Progress, PropertyRow, type PropertyRowProps, type RadioCardOption, RadioCards, RadioGroupRoot as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RichTextEditor, type RichTextEditorProps, type RichTextImageUrlHandler, SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH_MOBILE, ScrollAreaRoot as ScrollArea, SearchableTable, type SearchableTableColumn, type SearchableTableFilterOption, type SearchableTableProps, SectionHeading, SelectRoot as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, SheetRoot as Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, SliderRoot as Slider, Spinner, StackedList, StackedListItem, StatCard, StatCardGrid, type StatCardGridProps, type StatCardProps, StatCardSlot, type StatCardSlotProps, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, type Step, type StepStatus, Steps, SwitchRoot as Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TabsRoot as Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TitledCard, type TitledCardProps, Toaster, ToggleRoot as Toggle, ToggleGroupRoot as ToggleGroup, ToggleGroupItem, TooltipRoot as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UrlRedirectPrompt, type UrlRedirectPromptProps, badgeVariants, buttonVariants, cardVariants, cn, formatDate, formatFileSize, hasUrlHandleChanged, navigationMenuTriggerStyle, normalizeUrlHandle, spinnerVariants, statusBadgeVariantFor, statusLabel, toggleVariants, urlResourcePath, useSidebar };
|