ptechcore_ui 1.0.4 → 1.0.5
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.cjs +362 -168
- package/dist/index.d.cts +58 -1
- package/dist/index.d.ts +58 -1
- package/dist/index.js +352 -165
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -9,6 +9,63 @@ interface PrimaryButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
9
9
|
declare const PrimaryButton: React.FC<PrimaryButtonProps>;
|
|
10
10
|
declare const SecondaryButton: React.FC<PrimaryButtonProps>;
|
|
11
11
|
|
|
12
|
+
interface ModalProps {
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
width?: string;
|
|
16
|
+
open: boolean;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
declare const Modal: React.FC<ModalProps>;
|
|
21
|
+
|
|
22
|
+
type InputProps = {
|
|
23
|
+
label?: string;
|
|
24
|
+
name: string;
|
|
25
|
+
type?: string;
|
|
26
|
+
value: string | number;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
required?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
error?: string;
|
|
31
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
32
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
33
|
+
};
|
|
34
|
+
declare const InputField: React.FC<InputProps>;
|
|
35
|
+
type TextInputProps = Omit<InputProps, "type">;
|
|
36
|
+
declare const TextInput: React.FC<TextInputProps>;
|
|
37
|
+
declare const NumberInput: React.FC<TextInputProps>;
|
|
38
|
+
declare const DateInput: React.FC<TextInputProps>;
|
|
39
|
+
type Option = {
|
|
40
|
+
label: string;
|
|
41
|
+
value: string | number;
|
|
42
|
+
};
|
|
43
|
+
type SelectInputProps = {
|
|
44
|
+
label?: string;
|
|
45
|
+
name: string;
|
|
46
|
+
value: string | number;
|
|
47
|
+
options: Option[];
|
|
48
|
+
defaultValue?: string | number;
|
|
49
|
+
required?: boolean;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
error?: string;
|
|
52
|
+
className?: string;
|
|
53
|
+
onChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
54
|
+
onBlur?: (e: React.FocusEvent<HTMLSelectElement>) => void;
|
|
55
|
+
};
|
|
56
|
+
declare const SelectInput: React.FC<SelectInputProps>;
|
|
57
|
+
type FileInputProps = {
|
|
58
|
+
label?: string;
|
|
59
|
+
name: string;
|
|
60
|
+
file?: string | File;
|
|
61
|
+
required?: boolean;
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
readOnly?: boolean;
|
|
64
|
+
error?: string;
|
|
65
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
66
|
+
};
|
|
67
|
+
declare const FileInput: React.FC<FileInputProps>;
|
|
68
|
+
|
|
12
69
|
interface MenuItem {
|
|
13
70
|
id: string;
|
|
14
71
|
label: string;
|
|
@@ -105,4 +162,4 @@ interface PagesProps {
|
|
|
105
162
|
}
|
|
106
163
|
declare const Pages: React.FC<PagesProps>;
|
|
107
164
|
|
|
108
|
-
export { type MenuItem, Pages, PrimaryButton, RewiseLayout, SecondaryButton, SessionProvider, ThemeProvider, ToastContainer, ToastProvider, useSession, useToast };
|
|
165
|
+
export { DateInput, FileInput, InputField, type MenuItem, Modal, NumberInput, Pages, PrimaryButton, RewiseLayout, SecondaryButton, SelectInput, SessionProvider, TextInput, ThemeProvider, ToastContainer, ToastProvider, useSession, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,63 @@ interface PrimaryButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
9
9
|
declare const PrimaryButton: React.FC<PrimaryButtonProps>;
|
|
10
10
|
declare const SecondaryButton: React.FC<PrimaryButtonProps>;
|
|
11
11
|
|
|
12
|
+
interface ModalProps {
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
width?: string;
|
|
16
|
+
open: boolean;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
declare const Modal: React.FC<ModalProps>;
|
|
21
|
+
|
|
22
|
+
type InputProps = {
|
|
23
|
+
label?: string;
|
|
24
|
+
name: string;
|
|
25
|
+
type?: string;
|
|
26
|
+
value: string | number;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
required?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
error?: string;
|
|
31
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
32
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
33
|
+
};
|
|
34
|
+
declare const InputField: React.FC<InputProps>;
|
|
35
|
+
type TextInputProps = Omit<InputProps, "type">;
|
|
36
|
+
declare const TextInput: React.FC<TextInputProps>;
|
|
37
|
+
declare const NumberInput: React.FC<TextInputProps>;
|
|
38
|
+
declare const DateInput: React.FC<TextInputProps>;
|
|
39
|
+
type Option = {
|
|
40
|
+
label: string;
|
|
41
|
+
value: string | number;
|
|
42
|
+
};
|
|
43
|
+
type SelectInputProps = {
|
|
44
|
+
label?: string;
|
|
45
|
+
name: string;
|
|
46
|
+
value: string | number;
|
|
47
|
+
options: Option[];
|
|
48
|
+
defaultValue?: string | number;
|
|
49
|
+
required?: boolean;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
error?: string;
|
|
52
|
+
className?: string;
|
|
53
|
+
onChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
54
|
+
onBlur?: (e: React.FocusEvent<HTMLSelectElement>) => void;
|
|
55
|
+
};
|
|
56
|
+
declare const SelectInput: React.FC<SelectInputProps>;
|
|
57
|
+
type FileInputProps = {
|
|
58
|
+
label?: string;
|
|
59
|
+
name: string;
|
|
60
|
+
file?: string | File;
|
|
61
|
+
required?: boolean;
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
readOnly?: boolean;
|
|
64
|
+
error?: string;
|
|
65
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
66
|
+
};
|
|
67
|
+
declare const FileInput: React.FC<FileInputProps>;
|
|
68
|
+
|
|
12
69
|
interface MenuItem {
|
|
13
70
|
id: string;
|
|
14
71
|
label: string;
|
|
@@ -105,4 +162,4 @@ interface PagesProps {
|
|
|
105
162
|
}
|
|
106
163
|
declare const Pages: React.FC<PagesProps>;
|
|
107
164
|
|
|
108
|
-
export { type MenuItem, Pages, PrimaryButton, RewiseLayout, SecondaryButton, SessionProvider, ThemeProvider, ToastContainer, ToastProvider, useSession, useToast };
|
|
165
|
+
export { DateInput, FileInput, InputField, type MenuItem, Modal, NumberInput, Pages, PrimaryButton, RewiseLayout, SecondaryButton, SelectInput, SessionProvider, TextInput, ThemeProvider, ToastContainer, ToastProvider, useSession, useToast };
|