@still-forest/canopy 0.18.0 → 0.19.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 +95 -7
- package/dist/index.js +5044 -4195
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
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" | "
|
|
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,12 +145,26 @@ declare interface DatePickerProps {
|
|
|
104
145
|
size?: "default" | "xs" | "sm" | "lg";
|
|
105
146
|
}
|
|
106
147
|
|
|
107
|
-
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }:
|
|
148
|
+
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props_4) => JSX.Element;
|
|
108
149
|
|
|
109
150
|
declare type Display = (typeof DISPLAYS)[number];
|
|
110
151
|
|
|
111
152
|
declare const DISPLAYS: readonly ["block", "flex", "grid", "inline", "inline-block", "inline-flex", "inline-grid", "inline-table", "list-item", "flow-root", "contents", "table", "table-header-group", "table-footer-group", "table-column-group", "table-column", "table-row-group", "table-row", "table-cell", "table-caption", "hidden", "sr-only", "not-sr-only"];
|
|
112
153
|
|
|
154
|
+
export declare const ErrorFallback: ({ error, onRetry }: ErrorFallbackProps) => JSX.Element;
|
|
155
|
+
|
|
156
|
+
declare interface ErrorFallbackProps {
|
|
157
|
+
error: Error;
|
|
158
|
+
onRetry?: () => void;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export declare const ErrorOverlay: ({ message, children }: ErrorOverlayProps) => JSX.Element;
|
|
162
|
+
|
|
163
|
+
declare interface ErrorOverlayProps {
|
|
164
|
+
message?: string;
|
|
165
|
+
children?: React.ReactNode;
|
|
166
|
+
}
|
|
167
|
+
|
|
113
168
|
export declare const Flex: typeof FlexComponent & {
|
|
114
169
|
Item: typeof FlexItem;
|
|
115
170
|
};
|
|
@@ -241,6 +296,15 @@ declare interface InputGroupProps {
|
|
|
241
296
|
children: React.ReactNode;
|
|
242
297
|
}
|
|
243
298
|
|
|
299
|
+
export declare const Interstitial: ({ variant, iconComponent, message, children }: InterstitialProps) => JSX.Element;
|
|
300
|
+
|
|
301
|
+
export declare interface InterstitialProps {
|
|
302
|
+
variant?: "error" | "info" | "success" | "warning";
|
|
303
|
+
iconComponent?: default_2.ElementType;
|
|
304
|
+
message?: string;
|
|
305
|
+
children?: default_2.ReactNode;
|
|
306
|
+
}
|
|
307
|
+
|
|
244
308
|
export declare const Label: ({ htmlFor, value, children, className, ...props }: LabelProps) => JSX.Element;
|
|
245
309
|
|
|
246
310
|
export declare interface LabelProps extends ComponentProps<"label"> {
|
|
@@ -285,6 +349,22 @@ declare type Overflow = (typeof OVERFLOWS)[number];
|
|
|
285
349
|
|
|
286
350
|
declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
|
|
287
351
|
|
|
352
|
+
export declare const PageLoader: ({ iconComponent, message }: PageLoaderProps) => JSX.Element;
|
|
353
|
+
|
|
354
|
+
declare interface PageLoaderProps {
|
|
355
|
+
iconComponent?: React.ElementType;
|
|
356
|
+
message?: string;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export declare const PageNotFound: ({ goHome, message }: PageNotFoundProps) => JSX.Element;
|
|
360
|
+
|
|
361
|
+
declare interface PageNotFoundProps {
|
|
362
|
+
message?: string;
|
|
363
|
+
goHome?: () => void;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export declare const Pagination: ({ pageCount, currentPage, onChange }: Props_3) => JSX.Element;
|
|
367
|
+
|
|
288
368
|
declare type Position = (typeof POSITIONS)[number];
|
|
289
369
|
|
|
290
370
|
declare const POSITIONS: readonly ["static", "fixed", "absolute", "relative", "sticky"];
|
|
@@ -308,18 +388,24 @@ declare interface Props_2 {
|
|
|
308
388
|
description?: string;
|
|
309
389
|
}
|
|
310
390
|
|
|
311
|
-
declare interface Props_3
|
|
391
|
+
declare interface Props_3 {
|
|
392
|
+
pageCount: number;
|
|
393
|
+
currentPage: number;
|
|
394
|
+
onChange: (page: number) => void;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
declare interface Props_4 extends ButtonProps {
|
|
312
398
|
disabled?: boolean;
|
|
313
399
|
handleDelete: () => void;
|
|
314
400
|
}
|
|
315
401
|
|
|
316
|
-
declare interface
|
|
402
|
+
declare interface Props_5 extends ButtonProps {
|
|
317
403
|
submitting?: boolean;
|
|
318
404
|
disabled?: boolean;
|
|
319
405
|
submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
320
406
|
}
|
|
321
407
|
|
|
322
|
-
declare interface
|
|
408
|
+
declare interface Props_6 extends SidebarProps {
|
|
323
409
|
children?: React.ReactNode;
|
|
324
410
|
}
|
|
325
411
|
|
|
@@ -337,7 +423,7 @@ declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2x
|
|
|
337
423
|
|
|
338
424
|
declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
339
425
|
|
|
340
|
-
export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }:
|
|
426
|
+
export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_5) => JSX.Element;
|
|
341
427
|
|
|
342
428
|
export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onValueChange, ...props }: SelectInputProps) => JSX.Element;
|
|
343
429
|
|
|
@@ -384,7 +470,7 @@ declare function Sidebar_2({ side, variant, collapsible, className, children, ..
|
|
|
384
470
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
385
471
|
}): JSX.Element;
|
|
386
472
|
|
|
387
|
-
export declare const SidebarLayout: ({ children, ...props }:
|
|
473
|
+
export declare const SidebarLayout: ({ children, ...props }: Props_6) => JSX.Element;
|
|
388
474
|
|
|
389
475
|
export declare interface SidebarProps extends React.ComponentProps<typeof Sidebar_2> {
|
|
390
476
|
brandContent: React.ReactNode;
|
|
@@ -412,6 +498,8 @@ declare type Size = (typeof SIZES)[number];
|
|
|
412
498
|
|
|
413
499
|
declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
|
|
414
500
|
|
|
501
|
+
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
502
|
+
|
|
415
503
|
export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
|
|
416
504
|
|
|
417
505
|
export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;
|