@still-forest/canopy 0.16.0 → 0.16.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.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
+ import { ClassProp } from 'class-variance-authority/types';
1
2
  import { ComponentProps } from 'react';
2
3
  import { default as default_2 } from 'react';
3
4
  import { JSX } from 'react/jsx-runtime';
4
5
  import * as React_2 from 'react';
6
+ import { VariantProps } from 'class-variance-authority';
5
7
 
6
8
  export declare const Box: default_2.ForwardRefExoticComponent<BoxProps & default_2.RefAttributes<HTMLDivElement>>;
7
9
 
@@ -26,6 +28,10 @@ declare type BoxSizing = (typeof BOX_SIZINGS)[number];
26
28
 
27
29
  export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, ...rest }: ButtonProps) => JSX.Element;
28
30
 
31
+ declare function Button_2({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
32
+ asChild?: boolean;
33
+ }): JSX.Element;
34
+
29
35
  export declare const ButtonGroup: {
30
36
  ({ children, className }: ButtonGroupProps): JSX.Element;
31
37
  Button({ children, className, ...props }: ButtonProps): JSX.Element;
@@ -48,6 +54,11 @@ export declare interface ButtonProps extends default_2.ComponentProps<"button">
48
54
  asChild?: boolean;
49
55
  }
50
56
 
57
+ declare const buttonVariants: (props?: ({
58
+ variant?: "link" | "secondary" | "destructive" | "default" | "outline" | "ghost" | null | undefined;
59
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
60
+ } & ClassProp) | undefined) => string;
61
+
51
62
  export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
52
63
 
53
64
  export declare interface CheckboxProps {
@@ -354,11 +365,14 @@ export declare interface SidebarProps extends React.ComponentProps<typeof Sideba
354
365
  bottomItemSets: SideLinkSet[];
355
366
  }
356
367
 
368
+ export declare function SidebarTrigger({ className, onClick, children, ...props }: React_2.ComponentProps<typeof Button_2>): JSX.Element;
369
+
357
370
  declare interface SideLink {
358
371
  slug: string;
359
372
  title: string;
360
373
  icon: React.ElementType;
361
374
  onClick?: () => void;
375
+ external?: boolean;
362
376
  }
363
377
 
364
378
  declare interface SideLinkSet {