@pawanr/shadcn-file-upload 0.1.0 → 0.1.2
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 +5 -5
- package/dist/hooks/use-file-upload.d.ts.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +192 -195
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# shadcn-file-upload
|
|
1
|
+
# @pawanr/shadcn-file-upload
|
|
2
2
|
|
|
3
3
|
A production-ready React component package combining shadcn/ui with react-dropzone. Features file type icons, customizable progress bars, and Untitled UI-inspired design.
|
|
4
4
|
|
|
@@ -16,11 +16,11 @@ A production-ready React component package combining shadcn/ui with react-dropzo
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install shadcn-file-upload
|
|
19
|
+
npm install @pawanr/shadcn-file-upload
|
|
20
20
|
# or
|
|
21
|
-
yarn add shadcn-file-upload
|
|
21
|
+
yarn add @pawanr/shadcn-file-upload
|
|
22
22
|
# or
|
|
23
|
-
pnpm add shadcn-file-upload
|
|
23
|
+
pnpm add @pawanr/shadcn-file-upload
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## Usage
|
|
@@ -28,7 +28,7 @@ pnpm add shadcn-file-upload
|
|
|
28
28
|
### Basic Example
|
|
29
29
|
|
|
30
30
|
```tsx
|
|
31
|
-
import { FileUpload, useFileUpload, FileItem } from 'shadcn-file-upload';
|
|
31
|
+
import { FileUpload, useFileUpload, FileItem } from '@pawanr/shadcn-file-upload';
|
|
32
32
|
|
|
33
33
|
export default function MyComponent() {
|
|
34
34
|
const { files, addFiles, removeFile } = useFileUpload({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-file-upload.d.ts","sourceRoot":"","sources":["../../src/hooks/use-file-upload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAgB,MAAM,UAAU,CAAC;AAGnF,eAAO,MAAM,aAAa,GAAI,oEAO3B,oBAAyB,KAAG,
|
|
1
|
+
{"version":3,"file":"use-file-upload.d.ts","sourceRoot":"","sources":["../../src/hooks/use-file-upload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAgB,MAAM,UAAU,CAAC;AAGnF,eAAO,MAAM,aAAa,GAAI,oEAO3B,oBAAyB,KAAG,mBA8H9B,CAAC"}
|