@still-forest/canopy 0.17.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 +67 -7
- package/dist/index.js +4987 -4060
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,38 @@
|
|
|
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';
|
|
4
5
|
import { JSX } from 'react/jsx-runtime';
|
|
5
6
|
import * as React_2 from 'react';
|
|
7
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
6
8
|
import { VariantProps } from 'class-variance-authority';
|
|
7
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
|
+
|
|
8
36
|
export declare const Box: default_2.ForwardRefExoticComponent<BoxProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
9
37
|
|
|
10
38
|
declare const BOX_SIZINGS: readonly ["content", "border"];
|
|
@@ -62,10 +90,24 @@ export declare interface ButtonProps extends default_2.ComponentProps<"button">
|
|
|
62
90
|
}
|
|
63
91
|
|
|
64
92
|
declare const buttonVariants: (props?: ({
|
|
65
|
-
variant?: "link" | "
|
|
93
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
66
94
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
67
95
|
} & ClassProp) | undefined) => string;
|
|
68
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
|
+
|
|
69
111
|
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
|
|
70
112
|
|
|
71
113
|
export declare interface CheckboxProps {
|
|
@@ -103,7 +145,7 @@ declare interface DatePickerProps {
|
|
|
103
145
|
size?: "default" | "xs" | "sm" | "lg";
|
|
104
146
|
}
|
|
105
147
|
|
|
106
|
-
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }:
|
|
148
|
+
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props_4) => JSX.Element;
|
|
107
149
|
|
|
108
150
|
declare type Display = (typeof DISPLAYS)[number];
|
|
109
151
|
|
|
@@ -284,6 +326,8 @@ declare type Overflow = (typeof OVERFLOWS)[number];
|
|
|
284
326
|
|
|
285
327
|
declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
|
|
286
328
|
|
|
329
|
+
export declare const Pagination: ({ pageCount, currentPage, onChange }: Props_3) => JSX.Element;
|
|
330
|
+
|
|
287
331
|
declare type Position = (typeof POSITIONS)[number];
|
|
288
332
|
|
|
289
333
|
declare const POSITIONS: readonly ["static", "fixed", "absolute", "relative", "sticky"];
|
|
@@ -307,18 +351,24 @@ declare interface Props_2 {
|
|
|
307
351
|
description?: string;
|
|
308
352
|
}
|
|
309
353
|
|
|
310
|
-
declare interface Props_3
|
|
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 {
|
|
311
361
|
disabled?: boolean;
|
|
312
362
|
handleDelete: () => void;
|
|
313
363
|
}
|
|
314
364
|
|
|
315
|
-
declare interface
|
|
365
|
+
declare interface Props_5 extends ButtonProps {
|
|
316
366
|
submitting?: boolean;
|
|
317
367
|
disabled?: boolean;
|
|
318
368
|
submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
319
369
|
}
|
|
320
370
|
|
|
321
|
-
declare interface
|
|
371
|
+
declare interface Props_6 extends SidebarProps {
|
|
322
372
|
children?: React.ReactNode;
|
|
323
373
|
}
|
|
324
374
|
|
|
@@ -336,7 +386,7 @@ declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2x
|
|
|
336
386
|
|
|
337
387
|
declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
338
388
|
|
|
339
|
-
export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }:
|
|
389
|
+
export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_5) => JSX.Element;
|
|
340
390
|
|
|
341
391
|
export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onValueChange, ...props }: SelectInputProps) => JSX.Element;
|
|
342
392
|
|
|
@@ -383,7 +433,7 @@ declare function Sidebar_2({ side, variant, collapsible, className, children, ..
|
|
|
383
433
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
384
434
|
}): JSX.Element;
|
|
385
435
|
|
|
386
|
-
export declare const SidebarLayout: ({ children, ...props }:
|
|
436
|
+
export declare const SidebarLayout: ({ children, ...props }: Props_6) => JSX.Element;
|
|
387
437
|
|
|
388
438
|
export declare interface SidebarProps extends React.ComponentProps<typeof Sidebar_2> {
|
|
389
439
|
brandContent: React.ReactNode;
|
|
@@ -411,6 +461,16 @@ declare type Size = (typeof SIZES)[number];
|
|
|
411
461
|
|
|
412
462
|
declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
|
|
413
463
|
|
|
464
|
+
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
465
|
+
|
|
466
|
+
export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
|
|
467
|
+
|
|
468
|
+
export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;
|
|
469
|
+
|
|
470
|
+
export declare function TabsList({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.List>): JSX.Element;
|
|
471
|
+
|
|
472
|
+
export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
|
|
473
|
+
|
|
414
474
|
declare const Text_2: default_2.ForwardRefExoticComponent<Omit<any, "ref"> & default_2.RefAttributes<Element>>;
|
|
415
475
|
export { Text_2 as Text }
|
|
416
476
|
|