pillardash-ui-react 0.1.10 → 0.1.13

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
@@ -52,7 +52,7 @@ interface FileUploadProps {
52
52
  }
53
53
  declare const FileUpload: React$1.FC<FileUploadProps>;
54
54
 
55
- interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
55
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "size"> {
56
56
  id: string;
57
57
  value: string;
58
58
  onChange?: (value: React$1.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
@@ -65,6 +65,7 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement> & Textar
65
65
  iconPosition?: "left" | "right";
66
66
  rightIcon?: React$1.ReactNode;
67
67
  className?: string;
68
+ size?: "sm" | "md" | "lg";
68
69
  }
69
70
  declare const Input: React$1.FC<InputProps>;
70
71
 
@@ -146,5 +147,29 @@ declare const AlertProvider: React$1.FC<{
146
147
  }>;
147
148
  declare const useAlert: () => AlertContextProps;
148
149
 
149
- export { AlertProvider, Button, Card, CheckBox, EmptyStateCard, ExportButton, ExportFormatEnum, FileUpload, Input, Search, Select, SelectButton, TextEditor, useAlert };
150
- export type { AlertType, ButtonProps, CheckBoxProps, EmptyStateProps, FileUploadProps, InputProps, SearchProps, SelectButtonOption, SelectButtonProps, SelectOption, SelectProps, TextEditorProps };
150
+ type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
151
+ type ModalPosition = 'left' | 'right' | 'center';
152
+ interface ModalProps {
153
+ isOpen: boolean;
154
+ onClose: () => void;
155
+ title?: string;
156
+ children: React$1.ReactNode;
157
+ size?: ModalSize;
158
+ position?: ModalPosition;
159
+ showCloseButton?: boolean;
160
+ closeOnOverlayClick?: boolean;
161
+ closeOnEscape?: boolean;
162
+ className?: string;
163
+ overlayClassName?: string;
164
+ contentClassName?: string;
165
+ headerClassName?: string;
166
+ footer?: React$1.ReactNode;
167
+ footerClassName?: string;
168
+ maxHeight?: boolean;
169
+ }
170
+ declare const Modal: React$1.FC<ModalProps>;
171
+
172
+ declare const ModalExample: React$1.FC;
173
+
174
+ export { AlertProvider, Button, Card, CheckBox, EmptyStateCard, ExportButton, ExportFormatEnum, FileUpload, Input, Modal, ModalExample, Search, Select, SelectButton, TextEditor, useAlert };
175
+ export type { AlertType, ButtonProps, CheckBoxProps, EmptyStateProps, FileUploadProps, InputProps, ModalProps, SearchProps, SelectButtonOption, SelectButtonProps, SelectOption, SelectProps, TextEditorProps };