@still-forest/canopy 0.19.3 → 0.20.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;
@@ -131,6 +132,8 @@ export declare interface ContainerProps extends BoxProps {
131
132
  className?: string;
132
133
  }
133
134
 
135
+ export declare type CursorType = "arrow" | "pointer" | "text" | "not-allowed";
136
+
134
137
  export declare const DateInput: ({ name, label, placeholder, note, className, ...props }: DateInputProps) => JSX.Element;
135
138
 
136
139
  declare interface DateInputProps extends Omit<TextInputProps, "type"> {
@@ -510,6 +513,10 @@ export declare function TabsList({ className, ...props }: React_2.ComponentProps
510
513
 
511
514
  export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
512
515
 
516
+ 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"];
517
+
518
+ declare type TailwindColor = (typeof TAILWIND_COLORS)[number];
519
+
513
520
  declare const Text_2: default_2.ForwardRefExoticComponent<Omit<any, "ref"> & default_2.RefAttributes<Element>>;
514
521
  export { Text_2 as Text }
515
522
 
@@ -574,7 +581,7 @@ export declare type Theme = "light" | "dark" | "system";
574
581
  export declare const Tooltip: TooltipComponent;
575
582
 
576
583
  declare type TooltipComponent = React.FC<TooltipProps> & {
577
- Trigger: React.FC<ChildProps>;
584
+ Trigger: React.FC<TriggerProps>;
578
585
  Content: React.FC<ChildProps>;
579
586
  };
580
587
 
@@ -584,6 +591,12 @@ declare interface TooltipProps {
584
591
  onOpenChange?: (open: boolean) => void;
585
592
  }
586
593
 
594
+ declare interface TriggerProps {
595
+ children: React.ReactNode;
596
+ cursor?: CursorType;
597
+ className?: string;
598
+ }
599
+
587
600
  declare const TYPOGRAPHY_ELEMENTS: readonly ["p", "span", "label", "div", "h1", "h2", "h3", "h4", "h5", "h6"];
588
601
 
589
602
  declare const TYPOGRAPHY_VARIANTS: readonly ["default", "inherit", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];