@blitheforge/media-library 1.0.6 → 1.0.8
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 +7 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -43,7 +43,13 @@ import "@blitheforge/media-library/styles.css";
|
|
|
43
43
|
import "./globals.css";
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
Import the library **before** your globals. Library utilities
|
|
46
|
+
Import the library **before** your globals. Library utilities live in a lower CSS layer (`bfml`) so they will not override your app's responsive classes (e.g. `hidden lg:block` on sidebars).
|
|
47
|
+
|
|
48
|
+
**Required for npm installs** — add this to your `globals.css` so Tailwind generates library classes in your app's utilities layer:
|
|
49
|
+
|
|
50
|
+
```css
|
|
51
|
+
@source "../../node_modules/@blitheforge/media-library/dist/index.js";
|
|
52
|
+
```
|
|
47
53
|
|
|
48
54
|
Do **not** add `@source` for this package in your app Tailwind config.
|
|
49
55
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blitheforge/media-library",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Tailwind-based React media library with nested folders, upload, and configurable API URLs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Mahadi Hasan",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"**/*.css"
|
|
43
43
|
],
|
|
44
44
|
"scripts": {
|
|
45
|
-
"build": "
|
|
45
|
+
"build": "tsup && tailwindcss -i ./src/styles.css -o ./dist/style.css --minify",
|
|
46
46
|
"build:js": "tsup",
|
|
47
47
|
"build:css": "tailwindcss -i ./src/styles.css -o ./dist/style.css --minify",
|
|
48
48
|
"dev": "tsup --watch",
|
|
49
49
|
"typecheck": "tsc --noEmit",
|
|
50
|
-
"prepublishOnly": "
|
|
50
|
+
"prepublishOnly": "tsup && tailwindcss -i ./src/styles.css -o ./dist/style.css --minify"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=18",
|