@still-forest/canopy 0.45.0 → 0.46.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
@@ -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: "info" | "success" | "warning" | "error";
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?: "default" | "secondary" | "destructive" | "outline";
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?: "error" | "info" | "success" | "warning";
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>>;
@@ -758,7 +766,7 @@ export declare interface SelectInputProps extends Omit<ComponentProps<"select">,
758
766
  size?: "xs" | "sm" | "md" | "lg" | "xl";
759
767
  }
760
768
 
761
- export declare const SelectPicker: ({ options, value, placeholder, onChange, label, name, labelClassName, hint, note, error, renderSelected, }: SelectPickerProps) => JSX.Element;
769
+ export declare const SelectPicker: ({ options, value, placeholder, onChange, label, name, labelClassName, triggerClassName, hint, note, error, renderSelected, }: SelectPickerProps) => JSX.Element;
762
770
 
763
771
  export declare interface SelectPickerOption {
764
772
  icon?: string;
@@ -781,11 +789,13 @@ export declare interface SelectPickerProps {
781
789
  options: SelectPickerOption[] | SelectPickerOptionGroup[];
782
790
  label?: string;
783
791
  labelClassName?: string;
792
+ triggerClassName?: string;
784
793
  placeholder?: string;
785
794
  hint?: string;
786
795
  note?: string;
787
796
  error?: string;
788
797
  renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
798
+ className?: string;
789
799
  }
790
800
 
791
801
  export declare const Separator: ({ className, orientation, gap, ...props }: SeparatorProps) => JSX.Element;