@gusarov-studio/rubik-ui 3.18.0 → 4.0.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.
@@ -1,7 +1,10 @@
1
1
  import React from "react";
2
2
  import "./Alert.scss";
3
3
  interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
4
- variant: "danger" | "default";
4
+ appearance?: "app-level" | "standard" | "inline";
5
+ variant?: "success" | "error" | "warning" | "info";
6
+ onClose?: (event: React.MouseEvent) => void;
7
+ icon?: React.ReactNode;
5
8
  }
6
9
  declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
7
- export { Alert };
10
+ export { Alert, type AlertProps };
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface AlertDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
3
+ asChild?: boolean;
4
+ }
5
+ declare const AlertDescription: React.ForwardRefExoticComponent<AlertDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
6
+ export { AlertDescription };
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface AlertTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
+ asChild?: boolean;
4
+ }
5
+ declare const AlertTitle: React.ForwardRefExoticComponent<AlertTitleProps & React.RefAttributes<HTMLHeadingElement>>;
6
+ export { AlertTitle };
@@ -1 +1,3 @@
1
1
  export * from "./Alert";
2
+ export * from "./AlertTitle";
3
+ export * from "./AlertDescription";