@still-forest/canopy 0.50.0 → 0.51.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +20 -6
  2. package/dist/index.js +5231 -4995
  3. package/package.json +27 -22
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
2
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
3
  import { ClassProp } from 'class-variance-authority/types';
3
4
  import { ClassValue } from 'clsx';
4
5
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
@@ -53,9 +54,13 @@ export declare interface AlertProps {
53
54
 
54
55
  declare type AlertVariant = "info" | "success" | "warning" | "error";
55
56
 
56
- export declare const Badge: ({ label, onClick, className, variant, color, children }: BadgeProps) => JSX.Element;
57
+ export declare const Badge: ({ label, onClick, className, variant, color, children, ...props }: BadgeProps) => JSX.Element;
57
58
 
58
- export declare interface BadgeProps {
59
+ declare function Badge_2({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
60
+ asChild?: boolean;
61
+ }): JSX.Element;
62
+
63
+ export declare interface BadgeProps extends React.ComponentProps<typeof Badge_2> {
59
64
  variant?: BadgeVariant;
60
65
  color?: TailwindColor;
61
66
  label?: string;
@@ -66,6 +71,10 @@ export declare interface BadgeProps {
66
71
 
67
72
  declare type BadgeVariant = AlertVariant | "default" | "secondary" | "destructive" | "outline";
68
73
 
74
+ declare const badgeVariants: (props?: ({
75
+ variant?: "info" | "success" | "warning" | "error" | "default" | "secondary" | "destructive" | "outline" | null | undefined;
76
+ } & ClassProp) | undefined) => string;
77
+
69
78
  export declare type BaseButtonSize = "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "unstyled";
70
79
 
71
80
  export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled" | "error" | "info" | "success" | "warning";
@@ -211,9 +220,11 @@ declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div"
211
220
 
212
221
  declare type CardTitleProps = React.ComponentProps<typeof CardTitle>;
213
222
 
214
- export declare const Checkbox: ({ label, name, value, checked, onCheckedChange, note, error, labelClassName, hint, }: CheckboxProps) => JSX.Element;
223
+ export declare const Checkbox: ({ label, name, value, checked, onCheckedChange, note, error, labelClassName, hint, ...props }: CheckboxProps) => JSX.Element;
224
+
225
+ declare function Checkbox_2({ className, ...props }: React_2.ComponentProps<typeof CheckboxPrimitive.Root>): JSX.Element;
215
226
 
216
- export declare interface CheckboxProps {
227
+ export declare interface CheckboxProps extends React.ComponentProps<typeof Checkbox_2> {
217
228
  label: string;
218
229
  labelClassName?: string;
219
230
  name: string;
@@ -265,7 +276,9 @@ declare interface CopyButtonProps extends Omit<ButtonProps, "onClick" | "disable
265
276
  content: string;
266
277
  }
267
278
 
268
- export declare type CursorType = "arrow" | "pointer" | "text" | "not-allowed";
279
+ 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"];
280
+
281
+ export declare type CursorType = (typeof CURSOR_TYPES)[number];
269
282
 
270
283
  export declare const DateInput: ({ name, label, placeholder, note, className, size, ...props }: DateInputProps) => JSX.Element;
271
284
 
@@ -871,10 +884,11 @@ declare interface SideLinkSet {
871
884
  links: SideLink[];
872
885
  }
873
886
 
874
- export declare const SimpleTooltip: ({ children, content }: SimpleTooltipProps) => JSX.Element;
887
+ export declare const SimpleTooltip: ({ children, cursor, content }: SimpleTooltipProps) => JSX.Element;
875
888
 
876
889
  declare interface SimpleTooltipProps {
877
890
  children: string | React.ReactNode;
891
+ cursor?: CursorType;
878
892
  content: string | React.ReactNode;
879
893
  }
880
894