pillardash-ui-react 0.0.4 → 0.0.6

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,6 +1,7 @@
1
- import { FC, ReactNode } from 'react';
1
+ import React$1, { FC, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
3
 
3
- interface ButtonProps2 {
4
+ interface ButtonProps {
4
5
  children: ReactNode;
5
6
  onClick?: () => void;
6
7
  type?: "button" | "submit" | "reset";
@@ -11,20 +12,76 @@ interface ButtonProps2 {
11
12
  icon?: ReactNode;
12
13
  loading?: boolean;
13
14
  }
14
- declare const CustomButton: FC<ButtonProps2>;
15
+ declare const Button: FC<ButtonProps>;
15
16
 
16
- interface ButtonProps {
17
- children: ReactNode;
18
- onClick?: () => void;
19
- type?: "button" | "submit" | "reset";
20
- size?: "small" | "medium" | "large";
21
- variant?: "primary" | "secondary" | "dark" | "neutral";
17
+ type CheckBoxProps = {
18
+ variant?: "check" | "dot" | "toggle";
19
+ size?: "sm" | "md" | "lg";
20
+ checked?: boolean;
22
21
  disabled?: boolean;
22
+ onChange?: (checked: boolean) => void;
23
+ label?: string;
24
+ };
25
+ declare function CheckBox({ variant, size, checked, disabled, onChange, label, }: CheckBoxProps): react_jsx_runtime.JSX.Element;
26
+
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;
23
44
  className?: string;
24
- icon?: ReactNode;
25
- loading?: boolean;
26
45
  }
27
- declare const Button: FC<ButtonProps>;
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>;
28
85
 
29
- export { Button, CustomButton as default };
30
- export type { ButtonProps, ButtonProps2 };
86
+ export { Button, CheckBox, FileUpload, Input, Search, Select, TextEditor };
87
+ export type { ButtonProps, CheckBoxProps, FileUploadProps, InputProps, SearchProps, SelectOption, SelectProps, TextEditorProps };