@still-forest/canopy 0.18.0 → 0.19.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
@@ -1,3 +1,4 @@
1
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
1
2
  import { ClassProp } from 'class-variance-authority/types';
2
3
  import { ComponentProps } from 'react';
3
4
  import { default as default_2 } from 'react';
@@ -6,6 +7,32 @@ import * as React_2 from 'react';
6
7
  import * as TabsPrimitive from '@radix-ui/react-tabs';
7
8
  import { VariantProps } from 'class-variance-authority';
8
9
 
10
+ export declare function Accordion({ ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Root>): JSX.Element;
11
+
12
+ export declare function AccordionContent({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Content>): JSX.Element;
13
+
14
+ export declare function AccordionItem({ className, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Item>): JSX.Element;
15
+
16
+ export declare function AccordionTrigger({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Trigger>): JSX.Element;
17
+
18
+ export declare const Alert: ({ type, title, message, className }: AlertProps) => JSX.Element;
19
+
20
+ declare interface AlertProps {
21
+ type: "info" | "success" | "warning" | "error";
22
+ title?: string;
23
+ message: string;
24
+ className?: string;
25
+ }
26
+
27
+ export declare const Badge: ({ label, onClick, className, variant }: BadgeProps) => JSX.Element;
28
+
29
+ declare interface BadgeProps {
30
+ variant?: "default" | "secondary" | "destructive" | "outline";
31
+ label: string;
32
+ onClick?: () => void;
33
+ className?: string;
34
+ }
35
+
9
36
  export declare const Box: default_2.ForwardRefExoticComponent<BoxProps & default_2.RefAttributes<HTMLDivElement>>;
10
37
 
11
38
  declare const BOX_SIZINGS: readonly ["content", "border"];
@@ -63,10 +90,24 @@ export declare interface ButtonProps extends default_2.ComponentProps<"button">
63
90
  }
64
91
 
65
92
  declare const buttonVariants: (props?: ({
66
- variant?: "link" | "secondary" | "destructive" | "default" | "outline" | "ghost" | null | undefined;
93
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
67
94
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
68
95
  } & ClassProp) | undefined) => string;
69
96
 
97
+ export declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
98
+
99
+ export declare function CardAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
100
+
101
+ export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
102
+
103
+ export declare function CardDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
104
+
105
+ export declare function CardFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
106
+
107
+ export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
108
+
109
+ export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
110
+
70
111
  export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
71
112
 
72
113
  export declare interface CheckboxProps {
@@ -104,7 +145,7 @@ declare interface DatePickerProps {
104
145
  size?: "default" | "xs" | "sm" | "lg";
105
146
  }
106
147
 
107
- export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props_3) => JSX.Element;
148
+ export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props_4) => JSX.Element;
108
149
 
109
150
  declare type Display = (typeof DISPLAYS)[number];
110
151
 
@@ -285,6 +326,8 @@ declare type Overflow = (typeof OVERFLOWS)[number];
285
326
 
286
327
  declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
287
328
 
329
+ export declare const Pagination: ({ pageCount, currentPage, onChange }: Props_3) => JSX.Element;
330
+
288
331
  declare type Position = (typeof POSITIONS)[number];
289
332
 
290
333
  declare const POSITIONS: readonly ["static", "fixed", "absolute", "relative", "sticky"];
@@ -308,18 +351,24 @@ declare interface Props_2 {
308
351
  description?: string;
309
352
  }
310
353
 
311
- declare interface Props_3 extends ButtonProps {
354
+ declare interface Props_3 {
355
+ pageCount: number;
356
+ currentPage: number;
357
+ onChange: (page: number) => void;
358
+ }
359
+
360
+ declare interface Props_4 extends ButtonProps {
312
361
  disabled?: boolean;
313
362
  handleDelete: () => void;
314
363
  }
315
364
 
316
- declare interface Props_4 extends ButtonProps {
365
+ declare interface Props_5 extends ButtonProps {
317
366
  submitting?: boolean;
318
367
  disabled?: boolean;
319
368
  submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
320
369
  }
321
370
 
322
- declare interface Props_5 extends SidebarProps {
371
+ declare interface Props_6 extends SidebarProps {
323
372
  children?: React.ReactNode;
324
373
  }
325
374
 
@@ -337,7 +386,7 @@ declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2x
337
386
 
338
387
  declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
339
388
 
340
- export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_4) => JSX.Element;
389
+ export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_5) => JSX.Element;
341
390
 
342
391
  export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onValueChange, ...props }: SelectInputProps) => JSX.Element;
343
392
 
@@ -384,7 +433,7 @@ declare function Sidebar_2({ side, variant, collapsible, className, children, ..
384
433
  collapsible?: "offcanvas" | "icon" | "none";
385
434
  }): JSX.Element;
386
435
 
387
- export declare const SidebarLayout: ({ children, ...props }: Props_5) => JSX.Element;
436
+ export declare const SidebarLayout: ({ children, ...props }: Props_6) => JSX.Element;
388
437
 
389
438
  export declare interface SidebarProps extends React.ComponentProps<typeof Sidebar_2> {
390
439
  brandContent: React.ReactNode;
@@ -412,6 +461,8 @@ declare type Size = (typeof SIZES)[number];
412
461
 
413
462
  declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
414
463
 
464
+ export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
465
+
415
466
  export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
416
467
 
417
468
  export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;