pillardash-ui-react 0.0.5 → 0.0.7

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
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from 'react';
1
+ import React$1, { FC, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
 
4
4
  interface ButtonProps {
@@ -24,5 +24,64 @@ type CheckBoxProps = {
24
24
  };
25
25
  declare function CheckBox({ variant, size, checked, disabled, onChange, label, }: CheckBoxProps): react_jsx_runtime.JSX.Element;
26
26
 
27
- export { Button, CheckBox };
28
- export type { ButtonProps, CheckBoxProps };
27
+ interface FileUploadProps {
28
+ onFileChange: (file: File | null) => void;
29
+ }
30
+ declare const FileUpload: React$1.FC<FileUploadProps>;
31
+
32
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
33
+ id: string;
34
+ value: string;
35
+ onChange?: (value: React$1.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
36
+ placeholder?: string;
37
+ error?: string;
38
+ label: string;
39
+ required?: boolean;
40
+ helpText?: string;
41
+ icon?: React$1.ReactNode;
42
+ iconPosition?: "left" | "right";
43
+ rightIcon?: React$1.ReactNode;
44
+ className?: string;
45
+ }
46
+ declare const Input: React$1.FC<InputProps>;
47
+
48
+ interface SearchProps {
49
+ placeholder?: string;
50
+ onSearch: (query: string) => void;
51
+ className?: string;
52
+ disabled?: boolean;
53
+ }
54
+ declare function Search({ placeholder, onSearch, className, }: SearchProps): react_jsx_runtime.JSX.Element;
55
+
56
+ type SelectOption = {
57
+ value: string;
58
+ label?: string;
59
+ disabled?: boolean;
60
+ };
61
+ type SelectProps = {
62
+ options: SelectOption[];
63
+ placeholder?: string;
64
+ onChange: (value: React.ChangeEvent<HTMLSelectElement>) => void;
65
+ value?: string;
66
+ size?: "sm" | "md" | "lg";
67
+ className?: string;
68
+ name?: string;
69
+ id?: string;
70
+ disabled?: boolean;
71
+ label?: string;
72
+ required?: boolean;
73
+ error?: string;
74
+ helpText?: string;
75
+ fullWidth?: boolean;
76
+ searchable?: boolean;
77
+ };
78
+ declare function Select({ options, placeholder, onChange, value, size, className, name, id, disabled, label, required, error, helpText, fullWidth, searchable, }: SelectProps): react_jsx_runtime.JSX.Element;
79
+
80
+ interface TextEditorProps {
81
+ initialContent?: string;
82
+ onUpdate: (content: string) => void;
83
+ }
84
+ declare const TextEditor: React$1.FC<TextEditorProps>;
85
+
86
+ export { Button, CheckBox, FileUpload, Input, Search, Select, TextEditor };
87
+ export type { ButtonProps, CheckBoxProps, FileUploadProps, InputProps, SearchProps, SelectOption, SelectProps, TextEditorProps };