@still-forest/canopy 0.45.1 → 0.47.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 +14 -6
- package/dist/index.js +2928 -2822
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -43,23 +43,27 @@ declare type AccordionTriggerProps = React.ComponentProps<typeof AccordionTrigge
|
|
|
43
43
|
export declare const Alert: ({ type, title, message, className, children }: AlertProps) => JSX.Element;
|
|
44
44
|
|
|
45
45
|
export declare interface AlertProps {
|
|
46
|
-
type:
|
|
46
|
+
type: AlertVariant;
|
|
47
47
|
title?: string;
|
|
48
48
|
message?: string;
|
|
49
49
|
className?: string;
|
|
50
50
|
children?: React.ReactNode;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
declare type AlertVariant = "info" | "success" | "warning" | "error";
|
|
54
|
+
|
|
53
55
|
export declare const Badge: ({ label, onClick, className, variant, color }: BadgeProps) => JSX.Element;
|
|
54
56
|
|
|
55
57
|
export declare interface BadgeProps {
|
|
56
|
-
variant?:
|
|
58
|
+
variant?: BadgeVariant;
|
|
57
59
|
color?: TailwindColor;
|
|
58
60
|
label: string;
|
|
59
61
|
onClick?: () => void;
|
|
60
62
|
className?: string;
|
|
61
63
|
}
|
|
62
64
|
|
|
65
|
+
declare type BadgeVariant = AlertVariant | "default" | "secondary" | "destructive" | "outline";
|
|
66
|
+
|
|
63
67
|
export declare type BaseButtonSize = "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "unstyled";
|
|
64
68
|
|
|
65
69
|
export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled" | "error" | "info" | "success" | "warning";
|
|
@@ -309,7 +313,7 @@ declare interface ErrorFallbackProps extends ErrorOverlayProps {
|
|
|
309
313
|
onRetry?: () => void;
|
|
310
314
|
}
|
|
311
315
|
|
|
312
|
-
export declare const ErrorOverlay: ({ message, children, ...props }: ErrorOverlayProps) => JSX.Element;
|
|
316
|
+
export declare const ErrorOverlay: ({ headline, message, children, ...props }: ErrorOverlayProps) => JSX.Element;
|
|
313
317
|
|
|
314
318
|
export declare interface ErrorOverlayProps extends InterstitialProps {
|
|
315
319
|
}
|
|
@@ -505,12 +509,16 @@ export declare interface InputProps extends TextInputProps {
|
|
|
505
509
|
step?: string;
|
|
506
510
|
}
|
|
507
511
|
|
|
508
|
-
export declare const Interstitial: ({ variant, iconComponent, message, children, iconSize, iconClassName, fullScreen, containerClassName, }: InterstitialProps) => JSX.Element;
|
|
512
|
+
export declare const Interstitial: ({ variant, iconComponent, headline, headlineLevel, headlineWeight, message, messageClassName, children, iconSize, iconClassName, fullScreen, containerClassName, }: InterstitialProps) => JSX.Element;
|
|
509
513
|
|
|
510
514
|
export declare interface InterstitialProps {
|
|
511
|
-
variant?:
|
|
515
|
+
variant?: AlertVariant;
|
|
512
516
|
iconComponent?: default_2.ElementType;
|
|
517
|
+
headline?: string;
|
|
518
|
+
headlineLevel?: HeadingSize;
|
|
519
|
+
headlineWeight?: FontWeight;
|
|
513
520
|
message?: string;
|
|
521
|
+
messageClassName?: string;
|
|
514
522
|
iconSize?: LoaderProps["size"];
|
|
515
523
|
iconClassName?: string;
|
|
516
524
|
children?: default_2.ReactNode;
|
|
@@ -644,7 +652,7 @@ export declare const PageLoader: ({ iconComponent, message, iconSize, iconClassN
|
|
|
644
652
|
declare interface PageLoaderProps extends InterstitialProps {
|
|
645
653
|
}
|
|
646
654
|
|
|
647
|
-
export declare const PageNotFound: ({ onBack, message, backIcon, backLabel, ...props }: PageNotFoundProps) => JSX.Element;
|
|
655
|
+
export declare const PageNotFound: ({ onBack, headline, message, backIcon, backLabel, ...props }: PageNotFoundProps) => JSX.Element;
|
|
648
656
|
|
|
649
657
|
declare interface PageNotFoundProps extends InterstitialProps {
|
|
650
658
|
backIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|