@reeverdev/ui 0.2.3 → 0.2.4
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.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3593,12 +3593,19 @@ interface NotificationCenterProps extends VariantProps<typeof notificationCenter
|
|
|
3593
3593
|
declare const NotificationCenter: React$1.ForwardRefExoticComponent<NotificationCenterProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3594
3594
|
|
|
3595
3595
|
declare const bannerVariants: (props?: ({
|
|
3596
|
-
variant?: "
|
|
3596
|
+
variant?: "solid" | "flat" | null | undefined;
|
|
3597
|
+
type?: "default" | "success" | "warning" | "error" | null | undefined;
|
|
3597
3598
|
position?: "top" | "relative" | null | undefined;
|
|
3598
3599
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3599
|
-
|
|
3600
|
+
type BannerType = "default" | "success" | "warning" | "error";
|
|
3601
|
+
type BannerVariant = "solid" | "flat";
|
|
3602
|
+
interface BannerProps extends React$1.HTMLAttributes<HTMLDivElement>, Omit<VariantProps<typeof bannerVariants>, "type" | "variant"> {
|
|
3600
3603
|
/** Banner message */
|
|
3601
3604
|
message: React$1.ReactNode;
|
|
3605
|
+
/** Semantic type with automatic icon and color */
|
|
3606
|
+
type?: BannerType;
|
|
3607
|
+
/** Visual style variant */
|
|
3608
|
+
variant?: BannerVariant;
|
|
3602
3609
|
/** Show icon */
|
|
3603
3610
|
showIcon?: boolean;
|
|
3604
3611
|
/** Custom icon */
|
|
@@ -3607,12 +3614,8 @@ interface BannerProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantPro
|
|
|
3607
3614
|
dismissible?: boolean;
|
|
3608
3615
|
/** Callback when dismissed */
|
|
3609
3616
|
onDismiss?: () => void;
|
|
3610
|
-
/**
|
|
3611
|
-
|
|
3612
|
-
label: string;
|
|
3613
|
-
onClick?: () => void;
|
|
3614
|
-
href?: string;
|
|
3615
|
-
};
|
|
3617
|
+
/** Content to display at the end (e.g., action button) */
|
|
3618
|
+
endContent?: React$1.ReactNode;
|
|
3616
3619
|
/** Animate the banner */
|
|
3617
3620
|
animate?: boolean;
|
|
3618
3621
|
/** Auto dismiss after ms */
|
package/dist/index.d.ts
CHANGED
|
@@ -3593,12 +3593,19 @@ interface NotificationCenterProps extends VariantProps<typeof notificationCenter
|
|
|
3593
3593
|
declare const NotificationCenter: React$1.ForwardRefExoticComponent<NotificationCenterProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3594
3594
|
|
|
3595
3595
|
declare const bannerVariants: (props?: ({
|
|
3596
|
-
variant?: "
|
|
3596
|
+
variant?: "solid" | "flat" | null | undefined;
|
|
3597
|
+
type?: "default" | "success" | "warning" | "error" | null | undefined;
|
|
3597
3598
|
position?: "top" | "relative" | null | undefined;
|
|
3598
3599
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3599
|
-
|
|
3600
|
+
type BannerType = "default" | "success" | "warning" | "error";
|
|
3601
|
+
type BannerVariant = "solid" | "flat";
|
|
3602
|
+
interface BannerProps extends React$1.HTMLAttributes<HTMLDivElement>, Omit<VariantProps<typeof bannerVariants>, "type" | "variant"> {
|
|
3600
3603
|
/** Banner message */
|
|
3601
3604
|
message: React$1.ReactNode;
|
|
3605
|
+
/** Semantic type with automatic icon and color */
|
|
3606
|
+
type?: BannerType;
|
|
3607
|
+
/** Visual style variant */
|
|
3608
|
+
variant?: BannerVariant;
|
|
3602
3609
|
/** Show icon */
|
|
3603
3610
|
showIcon?: boolean;
|
|
3604
3611
|
/** Custom icon */
|
|
@@ -3607,12 +3614,8 @@ interface BannerProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantPro
|
|
|
3607
3614
|
dismissible?: boolean;
|
|
3608
3615
|
/** Callback when dismissed */
|
|
3609
3616
|
onDismiss?: () => void;
|
|
3610
|
-
/**
|
|
3611
|
-
|
|
3612
|
-
label: string;
|
|
3613
|
-
onClick?: () => void;
|
|
3614
|
-
href?: string;
|
|
3615
|
-
};
|
|
3617
|
+
/** Content to display at the end (e.g., action button) */
|
|
3618
|
+
endContent?: React$1.ReactNode;
|
|
3616
3619
|
/** Animate the banner */
|
|
3617
3620
|
animate?: boolean;
|
|
3618
3621
|
/** Auto dismiss after ms */
|