@still-forest/canopy 0.49.1 → 0.51.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +18 -6
  2. package/dist/index.js +2508 -2408
  3. package/package.json +22 -17
package/dist/index.d.ts CHANGED
@@ -53,18 +53,27 @@ export declare interface AlertProps {
53
53
 
54
54
  declare type AlertVariant = "info" | "success" | "warning" | "error";
55
55
 
56
- export declare const Badge: ({ label, onClick, className, variant, color }: BadgeProps) => JSX.Element;
56
+ export declare const Badge: ({ label, onClick, className, variant, color, children, ...props }: BadgeProps) => JSX.Element;
57
57
 
58
- export declare interface BadgeProps {
58
+ declare function Badge_2({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
59
+ asChild?: boolean;
60
+ }): JSX.Element;
61
+
62
+ export declare interface BadgeProps extends React.ComponentProps<typeof Badge_2> {
59
63
  variant?: BadgeVariant;
60
64
  color?: TailwindColor;
61
- label: string;
65
+ label?: string;
66
+ children?: React.ReactNode;
62
67
  onClick?: () => void;
63
68
  className?: string;
64
69
  }
65
70
 
66
71
  declare type BadgeVariant = AlertVariant | "default" | "secondary" | "destructive" | "outline";
67
72
 
73
+ declare const badgeVariants: (props?: ({
74
+ variant?: "info" | "success" | "warning" | "error" | "default" | "secondary" | "destructive" | "outline" | null | undefined;
75
+ } & ClassProp) | undefined) => string;
76
+
68
77
  export declare type BaseButtonSize = "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "unstyled";
69
78
 
70
79
  export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled" | "error" | "info" | "success" | "warning";
@@ -264,7 +273,9 @@ declare interface CopyButtonProps extends Omit<ButtonProps, "onClick" | "disable
264
273
  content: string;
265
274
  }
266
275
 
267
- export declare type CursorType = "arrow" | "pointer" | "text" | "not-allowed";
276
+ export declare const CURSOR_TYPES: readonly ["arrow", "pointer", "text", "not-allowed", "help", "wait", "context-menu", "none", "copy", "move", "progress", "cell", "crosshair", "vertical-text", "alias", "zoom-in", "zoom-out", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "s-resize", "e-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "nesw-resize", "nwse-resize"];
277
+
278
+ export declare type CursorType = (typeof CURSOR_TYPES)[number];
268
279
 
269
280
  export declare const DateInput: ({ name, label, placeholder, note, className, size, ...props }: DateInputProps) => JSX.Element;
270
281
 
@@ -492,7 +503,7 @@ declare interface InputGroupAddonProps extends React.ComponentProps<typeof Input
492
503
  }
493
504
 
494
505
  declare const inputGroupAddonVariants: (props?: ({
495
- align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
506
+ align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
496
507
  } & ClassProp) | undefined) => string;
497
508
 
498
509
  declare type InputGroupComponent = React.FC<InputGroupProps> & {
@@ -870,10 +881,11 @@ declare interface SideLinkSet {
870
881
  links: SideLink[];
871
882
  }
872
883
 
873
- export declare const SimpleTooltip: ({ children, content }: SimpleTooltipProps) => JSX.Element;
884
+ export declare const SimpleTooltip: ({ children, cursor, content }: SimpleTooltipProps) => JSX.Element;
874
885
 
875
886
  declare interface SimpleTooltipProps {
876
887
  children: string | React.ReactNode;
888
+ cursor?: CursorType;
877
889
  content: string | React.ReactNode;
878
890
  }
879
891