pillardash-ui-react 0.1.2 → 0.1.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.
package/dist/index.d.ts CHANGED
@@ -22,6 +22,20 @@ declare enum ExportFormatEnum {
22
22
  }
23
23
  declare function ExportButton(): react_jsx_runtime.JSX.Element;
24
24
 
25
+ declare const Card: ({ children }: {
26
+ children: ReactNode;
27
+ }) => react_jsx_runtime.JSX.Element;
28
+
29
+ interface EmptyStateProps {
30
+ title?: string;
31
+ description?: string;
32
+ btnText?: string;
33
+ onClick?: () => void;
34
+ icon?: ReactNode;
35
+ className?: string;
36
+ }
37
+ declare function EmptyStateCard({ title, onClick, btnText, description, className, icon, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
38
+
25
39
  type CheckBoxProps = {
26
40
  variant?: "check" | "dot" | "toggle";
27
41
  size?: "sm" | "md" | "lg";
@@ -110,5 +124,26 @@ type SelectButtonProps = {
110
124
  };
111
125
  declare function SelectButton({ options, placeholder, onChange, value, size, className, name, id, disabled, label, required, }: SelectButtonProps): react_jsx_runtime.JSX.Element;
112
126
 
113
- export { Button, CheckBox, ExportButton, ExportFormatEnum, FileUpload, Input, Search, Select, SelectButton, TextEditor };
114
- export type { ButtonProps, CheckBoxProps, FileUploadProps, InputProps, SearchProps, SelectButtonOption, SelectButtonProps, SelectOption, SelectProps, TextEditorProps };
127
+ type AlertType = "success" | "error" | "info" | "warning";
128
+ interface AlertProps {
129
+ message: string;
130
+ description?: string;
131
+ type?: AlertType;
132
+ duration?: number;
133
+ onClose?: () => void;
134
+ }
135
+
136
+ interface AlertContextProps {
137
+ showAlert: (props: Omit<AlertProps, "onClose">) => void;
138
+ success: (message: string, description?: string) => void;
139
+ error: (message: string, description?: string) => void;
140
+ info: (message: string, description?: string) => void;
141
+ warning: (message: string, description?: string) => void;
142
+ }
143
+ declare const AlertProvider: React$1.FC<{
144
+ children: React$1.ReactNode;
145
+ }>;
146
+ declare const useAlert: () => AlertContextProps;
147
+
148
+ export { AlertProvider, Button, Card, CheckBox, EmptyStateCard, ExportButton, ExportFormatEnum, FileUpload, Input, Search, Select, SelectButton, TextEditor, useAlert };
149
+ export type { AlertType, ButtonProps, CheckBoxProps, EmptyStateProps, FileUploadProps, InputProps, SearchProps, SelectButtonOption, SelectButtonProps, SelectOption, SelectProps, TextEditorProps };