@apipass/design-system 1.1.0 → 1.1.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.
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { CSSProperties, ReactNode } from "react";
2
2
  import "./notification.css";
3
3
  type NotificationVariant = "message" | "alert";
4
4
  export type NotificationProps = React.ComponentPropsWithoutRef<"div"> & {
@@ -7,4 +7,10 @@ export type NotificationProps = React.ComponentPropsWithoutRef<"div"> & {
7
7
  variant?: NotificationVariant;
8
8
  };
9
9
  export declare function Notification({ children, className, isDismissible, icon, variant, ...props }: NotificationProps): import("react/jsx-runtime").JSX.Element;
10
+ export type MessageNotificationProps = {
11
+ message: string | null;
12
+ style?: CSSProperties;
13
+ };
14
+ export declare function ErrorNotification({ message, style }: MessageNotificationProps): import("react/jsx-runtime").JSX.Element | null;
15
+ export declare function SuccessNotification({ message, style }: MessageNotificationProps): import("react/jsx-runtime").JSX.Element | null;
10
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apipass/design-system",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "description": "APIPass React Design System",
6
6
  "sideEffects": [