buildgrid-ui 1.15.2 → 1.15.3

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,8 +1,15 @@
1
- import * as React from "react";
2
- import { type VariantProps } from "class-variance-authority";
3
- declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
4
- variant?: "default" | "destructive" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
6
- declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
7
- declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
8
- export { Alert, AlertTitle, AlertDescription };
1
+ import type React from 'react';
2
+ export interface AlertProps {
3
+ variant?: 'info' | 'warning' | 'error' | 'success';
4
+ title?: string;
5
+ children: React.ReactNode;
6
+ showCloseButton?: boolean;
7
+ onClose?: () => void;
8
+ actionButton?: {
9
+ label: string;
10
+ onClick: () => void;
11
+ variant?: 'default' | 'outline' | 'secondary';
12
+ };
13
+ className?: string;
14
+ }
15
+ export declare function Alert({ variant, title, children, showCloseButton, onClose, actionButton, className, }: AlertProps): import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ export declare const spinnerColors: TSpinnerColors[];
4
4
  export type TSpinnerSizes = NonNullable<VariantProps<typeof spinnerVariants>['size']>;
5
5
  export declare const spinnerSizes: TSpinnerSizes[];
6
6
  declare const spinnerVariants: (props?: ({
7
- color?: "secondary" | "error" | "primary" | "success" | "warning" | "info" | "white" | "neutral" | null | undefined;
7
+ color?: "secondary" | "info" | "warning" | "error" | "success" | "primary" | "white" | "neutral" | null | undefined;
8
8
  size?: "md" | "sm" | "lg" | "xl" | "2xl" | "xs" | null | undefined;
9
9
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  export interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildgrid-ui",
3
- "version": "1.15.2",
3
+ "version": "1.15.3",
4
4
  "homepage": "http://adrianomaringolo.github.io/buildgrid-ui",
5
5
  "publishConfig": {
6
6
  "access": "public"