soumya-ui-kit 1.0.0

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/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # My UI Kit
2
+
3
+ A powerful, extensible, and modern component library built for React.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install my-ui-kit
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { CustomButton, CustomInput, CustomCard } from 'my-ui-kit';
15
+
16
+ function App() {
17
+ return (
18
+ <div>
19
+ <CustomButton label="Click me" variant="contained" />
20
+ <CustomInput label="Enter text" />
21
+ <CustomCard title="Card Title" content="Card content goes here" />
22
+ </div>
23
+ );
24
+ }
25
+ ```
26
+
27
+ ## Components
28
+
29
+ - **CustomButton** - Customizable button component
30
+ - **CustomInput** - Input field component
31
+ - **CustomCard** - Card container component
32
+ - **CustomModal** - Modal dialog component
33
+ - **CustomSelect** - Select dropdown component
34
+
35
+ ## Development
36
+
37
+ ```bash
38
+ # Install dependencies
39
+ npm install
40
+
41
+ # Build the library
42
+ npm run build
43
+ ```
44
+
45
+ ## License
46
+
47
+ MIT
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CustomButtonProps } from './CustomButton.types';
3
+ export declare const CustomButton: React.FC<CustomButtonProps>;
@@ -0,0 +1,12 @@
1
+ export interface CustomButtonProps {
2
+ label: string;
3
+ variant?: 'text' | 'outlined' | 'contained';
4
+ color?: 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
5
+ size?: 'small' | 'medium' | 'large';
6
+ startIcon?: React.ReactNode;
7
+ endIcon?: React.ReactNode;
8
+ disabled?: boolean;
9
+ fullWidth?: boolean;
10
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
11
+ className?: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ export { CustomButton } from './CustomButton';
2
+ export type { CustomButtonProps } from './CustomButton.types';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CustomCardProps } from './CustomCard.types';
3
+ export declare const CustomCard: React.FC<CustomCardProps>;
@@ -0,0 +1,9 @@
1
+ export interface CustomCardProps {
2
+ title?: string;
3
+ content?: React.ReactNode;
4
+ image?: string;
5
+ imageAlt?: string;
6
+ actions?: React.ReactNode;
7
+ elevation?: number;
8
+ className?: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ export { CustomCard } from './CustomCard';
2
+ export type { CustomCardProps } from './CustomCard.types';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CustomInputProps } from './CustomInput.types';
3
+ export declare const CustomInput: React.FC<CustomInputProps>;
@@ -0,0 +1,17 @@
1
+ export interface CustomInputProps {
2
+ label?: string;
3
+ placeholder?: string;
4
+ type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
5
+ value?: string;
6
+ defaultValue?: string;
7
+ disabled?: boolean;
8
+ required?: boolean;
9
+ fullWidth?: boolean;
10
+ multiline?: boolean;
11
+ rows?: number;
12
+ error?: boolean;
13
+ helperText?: string;
14
+ onChange?: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
15
+ onBlur?: (event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
16
+ className?: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ export { CustomInput } from './CustomInput';
2
+ export type { CustomInputProps } from './CustomInput.types';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CustomModalProps } from './CustomModal.types';
3
+ export declare const CustomModal: React.FC<CustomModalProps>;
@@ -0,0 +1,9 @@
1
+ export interface CustomModalProps {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ title?: string;
5
+ children: React.ReactNode;
6
+ maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
+ fullWidth?: boolean;
8
+ actions?: React.ReactNode;
9
+ }
@@ -0,0 +1,2 @@
1
+ export { CustomModal } from './CustomModal';
2
+ export type { CustomModalProps } from './CustomModal.types';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CustomSelectProps } from './CustomSelect.types';
3
+ export declare const CustomSelect: React.FC<CustomSelectProps>;
@@ -0,0 +1,17 @@
1
+ export interface SelectOption {
2
+ value: string | number;
3
+ label: string;
4
+ }
5
+ export interface CustomSelectProps {
6
+ label?: string;
7
+ value?: string | number;
8
+ defaultValue?: string | number;
9
+ options: SelectOption[];
10
+ onChange?: (event: any) => void;
11
+ disabled?: boolean;
12
+ required?: boolean;
13
+ fullWidth?: boolean;
14
+ error?: boolean;
15
+ helperText?: string;
16
+ className?: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ export { CustomSelect } from './CustomSelect';
2
+ export type { CustomSelectProps, SelectOption } from './CustomSelect.types';
@@ -0,0 +1,5 @@
1
+ export * from './Button';
2
+ export * from './Input';
3
+ export * from './Modal';
4
+ export * from './Card';
5
+ export * from './Select';
@@ -0,0 +1 @@
1
+ export * from './components';