@still-forest/canopy 0.19.4 → 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
@@ -24,10 +24,11 @@ declare interface AlertProps {
24
24
  className?: string;
25
25
  }
26
26
 
27
- export declare const Badge: ({ label, onClick, className, variant }: BadgeProps) => JSX.Element;
27
+ export declare const Badge: ({ label, onClick, className, variant, color }: BadgeProps) => JSX.Element;
28
28
 
29
29
  declare interface BadgeProps {
30
30
  variant?: "default" | "secondary" | "destructive" | "outline";
31
+ color?: TailwindColor;
31
32
  label: string;
32
33
  onClick?: () => void;
33
34
  className?: string;
@@ -324,7 +325,7 @@ export declare const MenuItemText: ({ children }: {
324
325
  children: React.ReactNode;
325
326
  }) => JSX.Element;
326
327
 
327
- 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;
328
329
 
329
330
  /**
330
331
  + * A specialized input component for numeric values.
@@ -384,10 +385,12 @@ declare interface Props {
384
385
  }
385
386
 
386
387
  declare interface Props_2 {
387
- trigger: React.ReactNode;
388
388
  children: React.ReactNode;
389
+ trigger?: React.ReactNode;
389
390
  title?: string;
390
391
  description?: string;
392
+ open?: boolean;
393
+ onOpenChange?: (open: boolean) => void;
391
394
  }
392
395
 
393
396
  declare interface Props_3 {
@@ -504,6 +507,29 @@ declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit",
504
507
 
505
508
  export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
506
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
+
507
533
  export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
508
534
 
509
535
  export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;
@@ -512,6 +538,10 @@ export declare function TabsList({ className, ...props }: React_2.ComponentProps
512
538
 
513
539
  export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
514
540
 
541
+ declare const TAILWIND_COLORS: readonly ["red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "pink", "rose", "slate", "gray", "zinc", "neutral", "stone", "white", "black"];
542
+
543
+ declare type TailwindColor = (typeof TAILWIND_COLORS)[number];
544
+
515
545
  declare const Text_2: default_2.ForwardRefExoticComponent<Omit<any, "ref"> & default_2.RefAttributes<Element>>;
516
546
  export { Text_2 as Text }
517
547