@still-forest/canopy 0.20.0 → 0.21.0

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
@@ -325,7 +325,7 @@ export declare const MenuItemText: ({ children }: {
325
325
  children: React.ReactNode;
326
326
  }) => JSX.Element;
327
327
 
328
- export declare const Modal: ({ trigger, children, title, description }: Props_2) => JSX.Element;
328
+ export declare const Modal: ({ trigger, children, title, description, open, onOpenChange }: Props_2) => JSX.Element;
329
329
 
330
330
  /**
331
331
  + * A specialized input component for numeric values.
@@ -385,10 +385,12 @@ declare interface Props {
385
385
  }
386
386
 
387
387
  declare interface Props_2 {
388
- trigger: React.ReactNode;
389
388
  children: React.ReactNode;
389
+ trigger?: React.ReactNode;
390
390
  title?: string;
391
391
  description?: string;
392
+ open?: boolean;
393
+ onOpenChange?: (open: boolean) => void;
392
394
  }
393
395
 
394
396
  declare interface Props_3 {
@@ -505,6 +507,29 @@ declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit",
505
507
 
506
508
  export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
507
509
 
510
+ export declare const Table: TableComponent;
511
+
512
+ export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
513
+
514
+ export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
515
+
516
+ export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
517
+
518
+ declare type TableComponent = React_2.FC<React_2.ComponentProps<"table">> & {
519
+ Body: typeof TableBody;
520
+ Caption: typeof TableCaption;
521
+ Cell: typeof TableCell;
522
+ Head: typeof TableHead;
523
+ Header: typeof TableHeader;
524
+ Row: typeof TableRow;
525
+ };
526
+
527
+ export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th">): JSX.Element;
528
+
529
+ export declare function TableHeader({ className, ...props }: React_2.ComponentProps<"thead">): JSX.Element;
530
+
531
+ export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
532
+
508
533
  export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
509
534
 
510
535
  export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;