my-you-eye 0.1.0 → 0.1.1
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 +149 -9
- package/dist/index.js +1448 -341
- package/package.json +7 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, ComponentPropsWithoutRef, ReactNode, TextareaHTMLAttributes } from 'react';
|
|
3
|
+
import { HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, ComponentPropsWithoutRef, ReactNode, TextareaHTMLAttributes, ImgHTMLAttributes, FC } from 'react';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
import { Root } from '@radix-ui/react-label';
|
|
@@ -261,7 +261,10 @@ interface TableProps extends HTMLAttributes<HTMLTableElement>, VariantProps<type
|
|
|
261
261
|
}
|
|
262
262
|
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
|
|
263
263
|
|
|
264
|
-
|
|
264
|
+
interface TableHeaderProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
265
|
+
sticky?: boolean;
|
|
266
|
+
}
|
|
267
|
+
declare const TableHeader: react.ForwardRefExoticComponent<TableHeaderProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
265
268
|
|
|
266
269
|
declare const TableBody: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
267
270
|
|
|
@@ -274,6 +277,7 @@ declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.Re
|
|
|
274
277
|
|
|
275
278
|
declare const headVariants: (props?: ({
|
|
276
279
|
density?: "normal" | "compact" | null | undefined;
|
|
280
|
+
align?: "center" | "left" | "right" | null | undefined;
|
|
277
281
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
278
282
|
interface TableHeadProps extends HTMLAttributes<HTMLTableCellElement>, VariantProps<typeof headVariants> {
|
|
279
283
|
}
|
|
@@ -281,6 +285,7 @@ declare const TableHead: react.ForwardRefExoticComponent<TableHeadProps & react.
|
|
|
281
285
|
|
|
282
286
|
declare const cellVariants: (props?: ({
|
|
283
287
|
density?: "normal" | "compact" | null | undefined;
|
|
288
|
+
align?: "center" | "left" | "right" | null | undefined;
|
|
284
289
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
285
290
|
interface TableCellProps extends HTMLAttributes<HTMLTableCellElement>, VariantProps<typeof cellVariants> {
|
|
286
291
|
}
|
|
@@ -340,14 +345,14 @@ declare const StatusDot: react.ForwardRefExoticComponent<StatusDotProps & react.
|
|
|
340
345
|
type KbdProps = HTMLAttributes<HTMLElement>;
|
|
341
346
|
declare const Kbd: react.ForwardRefExoticComponent<KbdProps & react.RefAttributes<HTMLElement>>;
|
|
342
347
|
|
|
343
|
-
type CellValueType = "text" | "boolean" | "email" | "url" | "json" | "null" | "badge" | "status";
|
|
348
|
+
type CellValueType = "text" | "boolean" | "email" | "url" | "json" | "null" | "badge" | "status" | "number" | "percentage" | "date" | "datetime" | "bytes" | "duration" | "array" | "image" | "audio" | "tree";
|
|
344
349
|
type UrlReplacement = {
|
|
345
350
|
pattern: string | RegExp;
|
|
346
351
|
label: string;
|
|
347
352
|
};
|
|
348
353
|
interface CellValueProps {
|
|
349
354
|
type?: CellValueType;
|
|
350
|
-
value
|
|
355
|
+
value?: unknown;
|
|
351
356
|
badgeVariant?: BadgeProps["variant"];
|
|
352
357
|
badgeStyle?: BadgeProps["style"];
|
|
353
358
|
statusVariant?: StatusDotProps["variant"];
|
|
@@ -362,6 +367,18 @@ interface CanvasProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
362
367
|
minZoom?: number;
|
|
363
368
|
maxZoom?: number;
|
|
364
369
|
zoomStep?: number;
|
|
370
|
+
controls?: ReactNode;
|
|
371
|
+
onBackgroundClick?: () => void;
|
|
372
|
+
offset?: {
|
|
373
|
+
x: number;
|
|
374
|
+
y: number;
|
|
375
|
+
};
|
|
376
|
+
zoom?: number;
|
|
377
|
+
onOffsetChange?: (o: {
|
|
378
|
+
x: number;
|
|
379
|
+
y: number;
|
|
380
|
+
}) => void;
|
|
381
|
+
onZoomChange?: (z: number) => void;
|
|
365
382
|
}
|
|
366
383
|
declare const Canvas: react.ForwardRefExoticComponent<CanvasProps & react.RefAttributes<HTMLDivElement>>;
|
|
367
384
|
|
|
@@ -376,6 +393,8 @@ interface PortDef {
|
|
|
376
393
|
interface GraphNodeRow {
|
|
377
394
|
label: string;
|
|
378
395
|
value: ReactNode;
|
|
396
|
+
portLeft?: PortDef;
|
|
397
|
+
portRight?: PortDef;
|
|
379
398
|
}
|
|
380
399
|
interface GraphNodeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof graphNodeVariants> {
|
|
381
400
|
x: number;
|
|
@@ -402,7 +421,7 @@ declare const Typography: react.ForwardRefExoticComponent<TypographyProps & reac
|
|
|
402
421
|
|
|
403
422
|
interface TreeNodeValue {
|
|
404
423
|
type: CellValueType;
|
|
405
|
-
value
|
|
424
|
+
value?: unknown;
|
|
406
425
|
badgeVariant?: "neutral" | "primary" | "success" | "warning" | "danger";
|
|
407
426
|
badgeStyle?: "solid" | "soft";
|
|
408
427
|
statusVariant?: "neutral" | "success" | "warning" | "danger" | "info";
|
|
@@ -414,17 +433,19 @@ interface TreeNode {
|
|
|
414
433
|
value?: TreeNodeValue;
|
|
415
434
|
children?: TreeNode[];
|
|
416
435
|
icon?: ReactNode;
|
|
417
|
-
defaultCollapsed?: boolean;
|
|
418
436
|
}
|
|
419
437
|
interface TreeViewProps extends VariantProps<typeof treeVariants> {
|
|
420
438
|
data: TreeNode[];
|
|
421
439
|
indent?: number;
|
|
440
|
+
defaultExpandedDepth?: number;
|
|
441
|
+
expandedKeys?: Set<string>;
|
|
442
|
+
onToggle?: (id: string) => void;
|
|
422
443
|
replacements?: UrlReplacement[];
|
|
423
444
|
}
|
|
424
445
|
declare const treeVariants: (props?: ({
|
|
425
446
|
variant?: "default" | "condensed" | null | undefined;
|
|
426
447
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
427
|
-
declare function TreeView({ data, variant, indent, replacements }: TreeViewProps): react.JSX.Element;
|
|
448
|
+
declare function TreeView({ data, variant, indent, defaultExpandedDepth, expandedKeys, onToggle, replacements, }: TreeViewProps): react.JSX.Element;
|
|
428
449
|
|
|
429
450
|
declare const codeBlockVariants: (props?: ({
|
|
430
451
|
variant?: "default" | "elevated" | null | undefined;
|
|
@@ -452,6 +473,21 @@ interface ComboboxProps {
|
|
|
452
473
|
}
|
|
453
474
|
declare function Combobox({ options, value, onChange, placeholder, emptyText, className, disabled, }: ComboboxProps): react.JSX.Element;
|
|
454
475
|
|
|
476
|
+
interface MultiSelectOption {
|
|
477
|
+
value: string;
|
|
478
|
+
label: string;
|
|
479
|
+
}
|
|
480
|
+
interface MultiSelectProps {
|
|
481
|
+
options: MultiSelectOption[];
|
|
482
|
+
value?: string[];
|
|
483
|
+
onChange?: (value: string[]) => void;
|
|
484
|
+
placeholder?: string;
|
|
485
|
+
emptyText?: string;
|
|
486
|
+
className?: string;
|
|
487
|
+
disabled?: boolean;
|
|
488
|
+
}
|
|
489
|
+
declare function MultiSelect({ options, value, onChange, placeholder, emptyText, className, disabled, }: MultiSelectProps): react.JSX.Element;
|
|
490
|
+
|
|
455
491
|
interface CommandAction {
|
|
456
492
|
id: string;
|
|
457
493
|
label: string;
|
|
@@ -474,7 +510,7 @@ interface CommandPaletteProps {
|
|
|
474
510
|
declare function CommandPalette({ open, onOpenChange, actions, onSelect, placeholder, emptyText, groups, }: CommandPaletteProps): react.JSX.Element;
|
|
475
511
|
|
|
476
512
|
declare const drawerContentVariants: (props?: ({
|
|
477
|
-
side?: "
|
|
513
|
+
side?: "left" | "right" | null | undefined;
|
|
478
514
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
479
515
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
480
516
|
interface DrawerContentProps extends React.ComponentPropsWithoutRef<typeof Content>, VariantProps<typeof drawerContentVariants> {
|
|
@@ -505,6 +541,29 @@ interface DataListProps extends HTMLAttributes<HTMLDListElement>, VariantProps<t
|
|
|
505
541
|
}
|
|
506
542
|
declare const DataList: react.ForwardRefExoticComponent<DataListProps & react.RefAttributes<HTMLDListElement>>;
|
|
507
543
|
|
|
544
|
+
type StatusVariant = "neutral" | "success" | "warning" | "danger" | "info";
|
|
545
|
+
interface DataTableColumn {
|
|
546
|
+
key: string;
|
|
547
|
+
header: string;
|
|
548
|
+
type?: CellValueType;
|
|
549
|
+
align?: "left" | "right" | "center";
|
|
550
|
+
badgeVariant?: "neutral" | "primary" | "success" | "warning" | "danger";
|
|
551
|
+
badgeStyle?: "solid" | "soft";
|
|
552
|
+
statusVariant?: StatusVariant | ((value: unknown) => StatusVariant);
|
|
553
|
+
statusPulse?: boolean;
|
|
554
|
+
}
|
|
555
|
+
interface DataTableProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof dataTableVariants> {
|
|
556
|
+
columns: DataTableColumn[];
|
|
557
|
+
rows: Record<string, unknown>[];
|
|
558
|
+
stickyHeader?: boolean;
|
|
559
|
+
replacements?: UrlReplacement[];
|
|
560
|
+
}
|
|
561
|
+
declare const dataTableVariants: (props?: ({
|
|
562
|
+
variant?: "default" | "striped" | null | undefined;
|
|
563
|
+
density?: "normal" | "compact" | null | undefined;
|
|
564
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
565
|
+
declare const DataTable: react.ForwardRefExoticComponent<DataTableProps & react.RefAttributes<HTMLDivElement>>;
|
|
566
|
+
|
|
508
567
|
interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
509
568
|
label?: string;
|
|
510
569
|
showValue?: boolean;
|
|
@@ -516,4 +575,85 @@ interface MarkdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
516
575
|
}
|
|
517
576
|
declare function Markdown({ content, className, ...props }: MarkdownProps): react.JSX.Element;
|
|
518
577
|
|
|
519
|
-
|
|
578
|
+
interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
579
|
+
children: ReactNode;
|
|
580
|
+
}
|
|
581
|
+
declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
|
|
582
|
+
|
|
583
|
+
declare const lineVariants: (props?: ({
|
|
584
|
+
variant?: "bezier" | "stepped" | "straight" | null | undefined;
|
|
585
|
+
state?: "default" | "connected" | "highlighted" | "pending" | null | undefined;
|
|
586
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
587
|
+
interface ConnectionLineProps extends VariantProps<typeof lineVariants> {
|
|
588
|
+
from: {
|
|
589
|
+
x: number;
|
|
590
|
+
y: number;
|
|
591
|
+
};
|
|
592
|
+
to: {
|
|
593
|
+
x: number;
|
|
594
|
+
y: number;
|
|
595
|
+
};
|
|
596
|
+
className?: string;
|
|
597
|
+
}
|
|
598
|
+
declare function ConnectionLine({ className, variant, state, from, to, }: ConnectionLineProps): react.JSX.Element;
|
|
599
|
+
|
|
600
|
+
interface FileDropProps extends Omit<HTMLAttributes<HTMLDivElement>, "onDrop"> {
|
|
601
|
+
onDrop?: (files: File[]) => void;
|
|
602
|
+
accept?: string;
|
|
603
|
+
multiple?: boolean;
|
|
604
|
+
maxSize?: number;
|
|
605
|
+
size?: "sm" | "md" | "lg";
|
|
606
|
+
disabled?: boolean;
|
|
607
|
+
}
|
|
608
|
+
declare const FileDrop: react.ForwardRefExoticComponent<FileDropProps & react.RefAttributes<HTMLDivElement>>;
|
|
609
|
+
|
|
610
|
+
declare const imageVariants: (props?: ({
|
|
611
|
+
fit?: "fill" | "none" | "contain" | "cover" | "scaleDown" | null | undefined;
|
|
612
|
+
radius?: "sm" | "md" | "lg" | "none" | "full" | null | undefined;
|
|
613
|
+
aspect?: "auto" | "video" | "square" | "wide" | "tall" | null | undefined;
|
|
614
|
+
bordered?: boolean | null | undefined;
|
|
615
|
+
shadowed?: boolean | null | undefined;
|
|
616
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
617
|
+
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement>, VariantProps<typeof imageVariants> {
|
|
618
|
+
caption?: string;
|
|
619
|
+
}
|
|
620
|
+
declare const Image: react.ForwardRefExoticComponent<ImageProps & react.RefAttributes<HTMLImageElement>>;
|
|
621
|
+
|
|
622
|
+
interface PortRef {
|
|
623
|
+
nodeId: string;
|
|
624
|
+
rowIndex: number;
|
|
625
|
+
side: "left" | "right";
|
|
626
|
+
}
|
|
627
|
+
type NodeState = "default" | "selected" | "muted";
|
|
628
|
+
type EdgeState = "default" | "selected";
|
|
629
|
+
interface EditorNode {
|
|
630
|
+
id: string;
|
|
631
|
+
x: number;
|
|
632
|
+
y: number;
|
|
633
|
+
header: string;
|
|
634
|
+
rows: GraphNodeRow[];
|
|
635
|
+
footer?: string;
|
|
636
|
+
accent?: boolean;
|
|
637
|
+
state?: NodeState;
|
|
638
|
+
}
|
|
639
|
+
interface EditorEdge {
|
|
640
|
+
id: string;
|
|
641
|
+
from: PortRef;
|
|
642
|
+
to: PortRef;
|
|
643
|
+
state?: EdgeState;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
interface OrchestratorProps {
|
|
647
|
+
initialNodes: EditorNode[];
|
|
648
|
+
initialEdges?: EditorEdge[];
|
|
649
|
+
snapToGrid?: boolean;
|
|
650
|
+
className?: string;
|
|
651
|
+
controls?: ReactNode;
|
|
652
|
+
onChange?: (state: {
|
|
653
|
+
nodes: EditorNode[];
|
|
654
|
+
edges: EditorEdge[];
|
|
655
|
+
}) => void;
|
|
656
|
+
}
|
|
657
|
+
declare const Orchestrator: FC<OrchestratorProps>;
|
|
658
|
+
|
|
659
|
+
export { Alert, Avatar, Badge, Breadcrumbs, Button, Canvas, Card, CardContent, CardFooter, CardHeader, CardTitle, CellValue, Checkbox, CodeBlock, Combobox, CommandPalette, ConfirmDialog, ConnectionLine, DataList, DataTable, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DrawerBody, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, type EditorEdge, type EditorNode, EmptyState, FileDrop, FormField, GraphNode, Image, Input, Kbd, Label, Markdown, MultiSelect, Orchestrator, type OrchestratorProps, PageShell, Pagination, PopoverContent, Port, Progress, RadioGroup, RadioGroupItem, ScrollArea, SelectContent, SelectItem, SelectTrigger, Separator, Skeleton, Slider, Spinner, StatCard, StatusDot, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toolbar, Tooltip, TooltipContent, TooltipProvider, TreeView, Typography, cn, useToast };
|