Skip to content

Commit 76adb04

Browse files
committed
feat: export style.css
1 parent 835798b commit 76adb04

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

docs/docs/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ npm install @fourcels/react-image-upload
1313

1414
```jsx
1515
import { ImageUpload } from "@fourcels/react-image-upload";
16-
import "@fourcels/react-image-upload/dist/index.css";
16+
import "@fourcels/react-image-upload/style.css";
1717

1818
function MyApp() {
1919
return <ImageUpload />;

docs/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Heading from "@theme/Heading";
66

77
import styles from "./index.module.css";
88
import { ImageUpload } from "@fourcels/react-image-upload";
9-
import "@fourcels/react-image-upload/dist/index.css";
9+
import "@fourcels/react-image-upload/style.css";
1010

1111
function HomepageHeader() {
1212
const { siteConfig } = useDocusaurusContext();

examples/shadcn/components/InputForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
import { Input } from "@/components/ui/input";
1919

2020
import { ImageUpload } from "@fourcels/react-image-upload";
21-
import "@fourcels/react-image-upload/dist/index.css";
21+
import "@fourcels/react-image-upload/style.css";
2222

2323
const FormSchema = z.object({
2424
username: z.string().min(2, {

packages/react-image-upload/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @fourcels/react-image-upload
22

3+
## 0.6.2
4+
5+
### Patch Changes
6+
7+
- feat: export style.css
8+
39
## 0.6.1
410

511
### Patch Changes

packages/react-image-upload/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pnpm add @fourcels/react-image-upload
1818

1919
```jsx
2020
import { ImageUpload } from "@fourcels/react-image-upload";
21-
import "@fourcels/react-image-upload/dist/index.css";
21+
import "@fourcels/react-image-upload/style.css";
2222

2323
function MyApp() {
2424
return <ImageUpload />;

packages/react-image-upload/package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
{
22
"name": "@fourcels/react-image-upload",
3-
"version": "0.6.1",
3+
"version": "0.6.2",
44
"type": "module",
55
"description": "A image upload component for React",
66
"main": "./dist/index.js",
7+
"exports": {
8+
".": {
9+
"import": "./dist/index.js",
10+
"require": "./dist/index.js"
11+
},
12+
"./style.css": {
13+
"import": "./dist/index.css",
14+
"require": "./dist/index.css"
15+
}
16+
},
717
"scripts": {
818
"dev": "tsup --watch",
919
"build": "tsup"

0 commit comments

Comments
 (0)