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 +47 -0
- package/dist/components/Button/CustomButton.d.ts +3 -0
- package/dist/components/Button/CustomButton.types.d.ts +12 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Card/CustomCard.d.ts +3 -0
- package/dist/components/Card/CustomCard.types.d.ts +9 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Input/CustomInput.d.ts +3 -0
- package/dist/components/Input/CustomInput.types.d.ts +17 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Modal/CustomModal.d.ts +3 -0
- package/dist/components/Modal/CustomModal.types.d.ts +9 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Select/CustomSelect.d.ts +3 -0
- package/dist/components/Select/CustomSelect.types.d.ts +17 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +15864 -0
- package/dist/style.css +1 -0
- package/package.json +59 -0
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,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,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,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
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|